tickets #27494
closedmerge request info from gitlab to IRC
0%
Description
Now that we have our amazing heroes-bot, it would be cool to be able to send information about new and merged Merge Requests from gitlab.i.o.o/infra/salt to #opensuse-admin
Updated by asmorodskyi over 6 years ago
- Status changed from New to In Progress
- Assignee set to asmorodskyi
Updated by asmorodskyi over 6 years ago
During hackweek I spent some time on this issue. Up to now results are :
- There is no native support of gitlab pushing messages into IRC
- Supybot used by heroes for pushing notification about infra status does not have native integration with gitlab neither
- Supybot has integration with RSS so you can sign up for gitlab RSS feed . Down side of this - it would be really spamy solution because there is not match filtering abilities from gitlab side so you will get notification about every comment for MR for example
- @tampakrap suggested to use https://docs.gitlab.com/ce/ci/yaml/#after_script which look really promising but I did not finish yet
No matter that hackweek is over I plan to continue on this in my free time
Updated by cboltz over 6 years ago
I'm happy to hear that you want to work on this :-)
FYI: Gitlab has two feed types:
- the "activity" feed which you already found
- the "commits" feed which includes only commits. A merge request includes one entry per commit (not per merge request) and it only delivers after something got merged. So it's not perfect (better solutions welcome ;-) but better than nothing. The commit feed is https://gitlab.infra.opensuse.org/infra/salt/commits/production.atom?private_token=YOUR_SECRET_TOKEN
Another option might be to filter the activities feed for merge requests (and whatever we want, whitelist- or blacklist-based), and feed the filtered feed to supybot.
Updated by asmorodskyi over 6 years ago
So I figure out how to make supybot post messages on every commit , but my current impediment is credentials of the bot
Updated by asmorodskyi about 6 years ago
some updates :
I got all needed credentials and access to machine where bot is running
I manage to install RSS feed plugin in supybot instance which connected to #opensuse-admin
bot showing in logs :
Checking for announcements at https://gitlab.infra.opensuse.org/infra/salt.atom but it not produce any messages in IRC channel when new commit hit gitlab
if you trying to push bot for manual feed check it will cause error :
Error: Couldn't get RSS feed.
Next steps :
double check if this feed is ok by trying to run bot on another machine
Updated by asmorodskyi almost 6 years ago
- Status changed from In Progress to Workable
- Assignee deleted (
asmorodskyi)
Unassigned from this ticket. Unfortunately I hit dead-end and having no activity on this issue for more then 2 month
Updated by tampakrap over 5 years ago
- Status changed from Workable to Rejected
rejecting the ticket as the original assignee stopped working on the feature, and no interest has been expressed by anyone else to work on it