integrations: Add IGNORE_PRIVATE_REPOSITORIES preset WebhookUrlOption.

This refactors the `ignore_private_repositories` URL option to be a
preset because it can be used by other "version-control" integrations.
This commit is contained in:
PieterCK
2025-05-12 19:15:15 +07:00
committed by Tim Abbott
parent 57ff908af9
commit 3863f4d6a5
3 changed files with 16 additions and 6 deletions

View File

@@ -297,6 +297,13 @@ Currently configured preset URL options:
input `main` and `dev` for the branches of their repository, then
`&branches=main%2Cdev` would be appended to the generated integration URL.
- **`IGNORE_PRIVATE_REPOSITORIES`**: This preset is intended to be used for
[version control integrations](/integrations/version-control), and adds UI
for the user exclude private repositories from triggering Zulip
notification messages. When the user selects this option, the
`ignore_private_repositories` boolean parameter will be added to the
[generated integration URL](/help/generate-integration-url).
## Step 4: Manually testing the webhook
For either one of the command line tools, first, you'll need to get an