2018-03-07 22:10:50 +01:00
|
|
|
Receive GitLab notifications in Zulip!
|
2017-06-05 00:51:14 +02:00
|
|
|
|
2018-03-07 22:10:50 +01:00
|
|
|
1. {!create-stream.md!}
|
2017-06-05 00:51:14 +02:00
|
|
|
|
2022-06-26 02:38:55 +02:00
|
|
|
1. {!create-bot-construct-url.md!}
|
2017-06-05 00:51:14 +02:00
|
|
|
|
2021-05-10 07:02:14 +02:00
|
|
|
By default, the Zulip topics for merge requests will contain the
|
|
|
|
title of the GitLab merge request. You can change the topic format to
|
|
|
|
just contain the merge request ID by adding
|
2020-07-29 07:39:42 +02:00
|
|
|
`&use_merge_request_title=false` at the end of the URL.
|
2022-06-26 02:38:55 +02:00
|
|
|
{!git-webhook-url-with-branches.md!}
|
2017-06-05 00:51:14 +02:00
|
|
|
|
2018-03-07 22:10:50 +01:00
|
|
|
1. Go to your repository on GitLab and click **Settings** on the left
|
|
|
|
sidebar. Click on **Integrations**.
|
2018-01-09 12:06:52 +01:00
|
|
|
|
2018-03-07 22:10:50 +01:00
|
|
|
1. Set **URL** to the URL constructed above. Select the events you
|
|
|
|
you would like to receive notifications for, and click
|
|
|
|
**Add Webhook**.
|
2017-06-05 00:51:14 +02:00
|
|
|
|
|
|
|
{!congrats.md!}
|
|
|
|
|
2018-03-07 22:10:50 +01:00
|
|
|
![](/static/images/integrations/gitlab/001.png)
|
2018-04-20 17:32:44 +02:00
|
|
|
|
|
|
|
!!! tip ""
|
2021-09-10 00:44:29 +02:00
|
|
|
|
2018-04-20 17:32:44 +02:00
|
|
|
If your GitLab server and your Zulip server are on a local network
|
|
|
|
together, and you're running GitLab 10.5 or newer, you may need to enable
|
|
|
|
GitLab's "Allow requests to the local network from hooks and
|
|
|
|
services" setting (by default, recent GitLab versions refuse to post
|
|
|
|
webhook events to servers on the local network). You can find this
|
|
|
|
setting near the bottom of the GitLab "Settings" page in the "Admin area".
|