mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
Updated the Git-related integrations that support branch filtering: - Removed the branch-filtering configuration option, and its macro. - Added a new macro that integrates the branch-filtering instruction with the Generate-URL step. The new macro `generate-webhook-url-with-branch-filtering` builds off of the `generate-webhook-url-basic` macro, adding only the branch filtering instruction. But, it does not re-use the macro, instead duplicates it, to avoid the newline break that would be added otherwise.
1.3 KiB
1.3 KiB
Zulip GitLab integration
Receive GitLab notifications in Zulip!
{start_tabs}
-
{!create-an-incoming-webhook.md!}
-
{!generate-webhook-url-with-branch-filtering.md!}
-
Go to your repository on GitLab and click Settings on the left sidebar. Click on Integrations.
-
Set URL to the URL you generated. Select the events you would like to receive notifications for, and click Add Webhook.
!!! warn ""
**Note**: 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".
{end_tabs}
{!congrats.md!}
{!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=falseto the generated URL.
Related documentation
{!webhooks-url-specification.md!}
