2024-03-19 17:03:01 +01:00
|
|
|
# Zulip GitLab integration
|
|
|
|
|
2018-03-07 22:10:50 +01:00
|
|
|
Receive GitLab notifications in Zulip!
|
2017-06-05 00:51:14 +02:00
|
|
|
|
2024-03-19 17:03:01 +01:00
|
|
|
{start_tabs}
|
|
|
|
|
2024-05-05 22:30:09 +02:00
|
|
|
1. {!create-channel.md!}
|
2017-06-05 00:51:14 +02:00
|
|
|
|
2023-09-21 02:23:45 +02:00
|
|
|
1. {!create-an-incoming-webhook.md!}
|
|
|
|
|
2024-03-19 17:03:01 +01:00
|
|
|
1. {!generate-webhook-url-basic.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
|
|
|
|
2024-03-19 17:03:01 +01:00
|
|
|
1. Set **URL** to the URL you generated. Select the
|
2024-07-02 20:17:09 +02:00
|
|
|
[events](#filtering-incoming-events) you would like to receive
|
2024-03-19 17:03:01 +01:00
|
|
|
notifications for, and click **Add Webhook**.
|
2017-06-05 00:51:14 +02:00
|
|
|
|
2024-03-19 17:03:01 +01:00
|
|
|
!!! warn ""
|
2017-06-05 00:51:14 +02:00
|
|
|
|
2024-03-19 17:03:01 +01:00
|
|
|
**Note**: If your GitLab server and your Zulip server are on a local network
|
2018-04-20 17:32:44 +02:00
|
|
|
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".
|
2024-03-19 17:03:01 +01:00
|
|
|
|
|
|
|
{end_tabs}
|
|
|
|
|
|
|
|
{!congrats.md!}
|
|
|
|
|
|
|
|
![](/static/images/integrations/gitlab/001.png)
|
|
|
|
|
|
|
|
{!event-filtering-additional-feature.md!}
|
|
|
|
|
|
|
|
### Configuration options
|
|
|
|
|
|
|
|
* 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 `&use_merge_request_title=false`
|
|
|
|
to the generated URL.
|
|
|
|
|
|
|
|
{!git-branches-additional-feature.md!}
|
|
|
|
|
|
|
|
### Related documentation
|
|
|
|
|
|
|
|
{!webhooks-url-specification.md!}
|