Mention chat users
- Install Elixir.
- Create your chat bot (with name
@mentionerfor example), and obtain its key. You can do it here: https://your-team.slack.com/apps/manage/custom-integrations. - Copy
.env.sampleto.envand add your chat bot's key. - Perform
source .envto export chat bot key to ENV. - Run chat bot with
iex -S mix. - Invite bot into Gitlab CI channel, and say
@mentioner ping. It will respond to you withpong. - Subscribe to mentions, sending "@mentioner subscribe gitlab_username".
The
unsubscribecommand is also present. - Bot will mention you on CI failures.
Credit for bot sample goes to this article.