The GitLab Matrix bot (@gitlab:utwente.io) is a bot that can interact with the SNT GitLab.
Notifications
To enable notifications for a repository, do the following:
- Invite @gitlab:utwente.io to your room.
- Go to GitLab and open the integration settings of your project.
- The URL is:
https://integrations.snt.utwente.nl/gitlab/webhooks?room=!your_room_id:domain.com
The room ID can be found in Riot in the room settings (under advanced). - The Secret Token is
snt
- Configure the webhook to your liking!
Commands
It is also possible to interact with GitLab via the bot’s comands. To enable this, do the following:
- Log in to GitLab and go to user settings → access tokens
- Create an access token with the scopes: api, read_user
- Copy the created token.
- Open a private chat with @gitlab:utwente.io
- Register your account with
!gitlab login <token>
(where<token>
is the token from GitLab.
Use !gitlab help
to explore the functionality of the bot.