GitLab

Send GitLab project events to Telegram.

Add the webhook

In your project open Settings โ†’ Webhooks and fill the form:

Field Value
URL https://thook.altr.dev/hooks/gitlab/{unique_path}
Secret token The secret key from the bot
Trigger Tick the events below

Use the Test button next to the webhook to send a sample event.

Supported events

  • Push events
  • Tag push events
  • Issues events and confidential issues events
  • Merge request events
  • Wiki page events
  • Pipeline events
  • Job events
  • Comments (on commits, issues, merge requests and snippets)
  • Releases events
  • Deployment events

You choose the events: Thook shows the ones the webhook sends.

Other events are accepted and ignored.

What you get

The same shape as the other services. The meaning of the icons is in the quick start.

๐ŸŸข Pipeline passed ยท GitLab

๐Ÿ“ฆ group/thook ยท main
โš™๏ธ Pipeline #55 ยท ๐Ÿ•’ 1m 35s

๐Ÿ‘ค alice

View pipeline
๐ŸŸฃ Merge request merged ยท GitLab

๐Ÿ“ฆ group/thook
๐Ÿ“ฐ !12 Fix start
๐ŸŒฟ fix/start โ†’ main

๐Ÿ‘ค alice

Open MR
๐Ÿ’ฌ New comment on merge request ยท GitLab

๐Ÿ“ฆ group/thook
๐Ÿ“ฐ !12 Fix start
โœ๏ธ Looks good to me

๐Ÿ‘ค alice

View comment
๐Ÿ”ด Deployment failed ยท GitLab

๐Ÿ“ฆ group/thook
๐Ÿš€ production ยท abc1234

๐Ÿ‘ค alice

View deployment

The last line is a link that opens the push, the merge request, the issue, the comment, the release or the pipeline on GitLab.

Troubleshooting

  • 401: the Secret token does not match the bot secret.
  • Self-hosted GitLab: the instance must be able to reach thook.altr.dev over HTTPS.