Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integration-docs: Update branch filtering instructions.

Niloth P8f564b2053c5
diff --git a/templates/zerver/integrations/include/generate-webhook-url-with-branch-filtering.md b/templates/zerver/integrations/include/generate-webhook-url-with-branch-filtering.md
new file mode 100644
index 00000000000..3a2a60e29f0
--- /dev/null
+++ b/templates/zerver/integrations/include/generate-webhook-url-with-branch-filtering.md
@@ -0,0 +1,3 @@
+Decide where to send {{ integration_display_name }} notifications, and
+[generate the integration URL](/help/generate-integration-url). You'll be
+able to configure which branches you'll receive notifications from.
diff --git a/templates/zerver/integrations/include/git-branches-additional-feature.md b/templates/zerver/integrations/include/git-branches-additional-feature.md
deleted file mode 100644
index 534a7dbbd4a..00000000000
--- a/templates/zerver/integrations/include/git-branches-additional-feature.md
+++ /dev/null
@@ -1,3 +0,0 @@
-* You can limit the branches you receive notifications for by
- specifying them in a comma-separated list appended to the generated
- URL, e.g., `&branches=main,development`.
diff --git a/zerver/webhooks/azuredevops/doc.md b/zerver/webhooks/azuredevops/doc.md
index 6e19b156af3..0e06afb5651 100644
--- a/zerver/webhooks/azuredevops/doc.md
+++ b/zerver/webhooks/azuredevops/doc.md
@@ -6,7 +6,7 @@ Get Azure DevOps notifications in Zulip!
1. {!create-an-incoming-webhook.md!}
-1. {!generate-webhook-url-basic.md!}
+1. {!generate-webhook-url-with-branch-filtering.md!}
1. Go to your project on Azure DevOps, click on the **Project
settings** in the bottom left corner and select **Service
@@ -28,10 +28,6 @@ Get Azure DevOps notifications in Zulip!
{!event-filtering-additional-feature.md!}
-### Configuration options
-
-{!git-branches-additional-feature.md!}
-
### Related documentation
{!webhooks-url-specification.md!}
diff --git a/zerver/webhooks/bitbucket2/doc.md b/zerver/webhooks/bitbucket2/doc.md
index b06d63d8424..d7622d1c973 100644
--- a/zerver/webhooks/bitbucket2/doc.md
+++ b/zerver/webhooks/bitbucket2/doc.md
@@ -12,7 +12,7 @@ Bitbucket Server click [here](./bitbucket3).
1. {!create-an-incoming-webhook.md!}
-1. {!generate-webhook-url-basic.md!}
+1. {!generate-webhook-url-with-branch-filtering.md!}
1. On your repository's web page, go to **Settings**. Select
**Webhooks**, and then click **Add webhook**.
@@ -30,10 +30,6 @@ Bitbucket Server click [here](./bitbucket3).
{!event-filtering-additional-feature.md!}
-### Configuration options
-
-{!git-branches-additional-feature.md!}
-
### Related documentation
{!webhooks-url-specification.md!}
diff --git a/zerver/webhooks/bitbucket3/doc.md b/zerver/webhooks/bitbucket3/doc.md
index f2d6d7f74a1..23dc7f12b9c 100644
--- a/zerver/webhooks/bitbucket3/doc.md
+++ b/zerver/webhooks/bitbucket3/doc.md
@@ -12,7 +12,7 @@ Bitbucket Cloud (SAAS service) click [here](./bitbucket2).
1. {!create-an-incoming-webhook.md!}
-1. {!generate-webhook-url-basic.md!}
+1. {!generate-webhook-url-with-branch-filtering.md!}
1. On your repository's web page, go to **Settings**. Select
**Webhooks**, and then click **Add webhook**.
@@ -30,10 +30,6 @@ Bitbucket Cloud (SAAS service) click [here](./bitbucket2).
{!event-filtering-additional-feature.md!}
-### Configuration options
-
-{!git-branches-additional-feature.md!}
-
### Related documentation
{!webhooks-url-specification.md!}
diff --git a/zerver/webhooks/gitea/doc.md b/zerver/webhooks/gitea/doc.md
index 570ed93172b..1b04ef55c09 100644
--- a/zerver/webhooks/gitea/doc.md
+++ b/zerver/webhooks/gitea/doc.md
@@ -6,7 +6,7 @@ Receive Gitea notifications in Zulip!
1. {!create-an-incoming-webhook.md!}
-1. {!generate-webhook-url-basic.md!}
+1. {!generate-webhook-url-with-branch-filtering.md!}
1. Go to your repository on Gitea and click on **Settings**. Select
**Webhooks** on the left sidebar, and click **Add Webhook**.
@@ -22,10 +22,6 @@ Receive Gitea notifications in Zulip!
![](/static/images/integrations/gitea/001.png)
-### Configuration options
-
-{!git-branches-additional-feature.md!}
-
### Related documentation
{!webhooks-url-specification.md!}
diff --git a/zerver/webhooks/gitlab/doc.md b/zerver/webhooks/gitlab/doc.md
index 7a10a083631..3bb5ed401df 100644
--- a/zerver/webhooks/gitlab/doc.md
+++ b/zerver/webhooks/gitlab/doc.md
@@ -6,7 +6,7 @@ Receive GitLab notifications in Zulip!
1. {!create-an-incoming-webhook.md!}
-1. {!generate-webhook-url-basic.md!}
+1. {!generate-webhook-url-with-branch-filtering.md!}
1. Go to your repository on GitLab and click **Settings** on the left
sidebar. Click on **Integrations**.
@@ -39,8 +39,6 @@ Receive GitLab notifications in Zulip!
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!}
diff --git a/zerver/webhooks/gogs/doc.md b/zerver/webhooks/gogs/doc.md
index 235070befc7..c291ba9e20b 100644
--- a/zerver/webhooks/gogs/doc.md
+++ b/zerver/webhooks/gogs/doc.md
@@ -6,7 +6,7 @@ Receive Gogs notifications in Zulip!
1. {!create-an-incoming-webhook.md!}
-1. {!generate-webhook-url-basic.md!}
+1. {!generate-webhook-url-with-branch-filtering.md!}
1. Go to your repository on Gogs and click on **Settings**. Select
**Webhooks** on the left sidebar, and click **Add Webhook**.
@@ -24,10 +24,6 @@ Receive Gogs notifications in Zulip!
{!event-filtering-additional-feature.md!}
-### Configuration options
-
-{!git-branches-additional-feature.md!}
-
### Related documentation
{!webhooks-url-specification.md!}
diff --git a/zerver/webhooks/rhodecode/doc.md b/zerver/webhooks/rhodecode/doc.md
index 0a791ac7023..901ce4410ef 100644
--- a/zerver/webhooks/rhodecode/doc.md
+++ b/zerver/webhooks/rhodecode/doc.md
@@ -6,7 +6,7 @@ Get RhodeCode notifications in Zulip!
1. {!create-an-incoming-webhook.md!}
-1. {!generate-webhook-url-basic.md!}
+1. {!generate-webhook-url-with-branch-filtering.md!}
1. From your repository on RhodeCode, open the **Repository Settings** tab.
Select **Integrations**, click on **Create new integration**, and
@@ -24,10 +24,6 @@ Get RhodeCode notifications in Zulip!
{!event-filtering-additional-feature.md!}
-### Configuration options
-
-{!git-branches-additional-feature.md!}
-
### Related documentation
{!webhooks-url-specification.md!}