mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
Since the title of a merge request can often change, it shouldn't be a part of the topic that we send the message to. Otherwise things would get messy and confusing. But at the same time we don't want to make this mandatory. So we add a new boolean GET parameter that can toggle whether or not the topic should include the MR title (`use_merge_request_title`). Fixes #15951. Signed-off-by: Hemanth V. Alluri <hdrive1999@gmail.com>
31 lines
1.2 KiB
Markdown
31 lines
1.2 KiB
Markdown
Receive GitLab notifications in Zulip!
|
|
|
|
1. {!create-stream.md!}
|
|
|
|
1. {!create-bot-construct-url-indented.md!}
|
|
|
|
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` at the end of the URL.
|
|
{!git-webhook-url-with-branches-indented.md!}
|
|
|
|
1. Go to your repository on GitLab and click **Settings** on the left
|
|
sidebar. Click on **Integrations**.
|
|
|
|
1. Set **URL** to the URL constructed above. Select the events you
|
|
you would like to receive notifications for, and click
|
|
**Add Webhook**.
|
|
|
|
{!congrats.md!}
|
|
|
|

|
|
|
|
!!! tip ""
|
|
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".
|