Bitbucket

Version control

Back to listBack

Zulip Bitbucket integration

Receive Bitbucket Cloud notifications in Zulip!

This guide covers Git webhook notifications.

For Bitbucket Data Center webhooks, see the Zulip Bitbucket Data Center integration.

  1. Create a bot for Bitbucket. Make sure that you select Incoming webhook as the Bot type.

  2. Decide where to send Bitbucket notifications, and generate the integration URL. You'll be able to configure which branches you'll receive notifications from.

  3. On your repository's web page, go to Settings. Select Webhooks, and then click Add webhook.

  4. Set Title to a title of your choice, such as Zulip. Set URL to the URL generated above, and toggle the Active checkbox. Select the Triggers you'd like to be notified about, and click Save.

If you configure a custom profile field in your Zulip organization for Atlassian Cloud account IDs, this integration will refer to Bitbucket users using Zulip silent mentions, rather than their Bitbucket display name. See how to find Atlassian account IDs.

You're done! Your Bitbucket notifications may look like this:

Filtering incoming events

The Bitbucket integration supports filtering for the following events:

change_commit_status, pull_request_comment_created, pull_request_updated, pull_request_unapproved, push, pull_request_approved, pull_request_fulfilled, issue_created, issue_commented, fork, pull_request_comment_updated, pull_request_created, pull_request_rejected, repo:updated, issue_updated, commit_comment, pull_request_comment_deleted

Use separate bots/URLs for customers. The URL contains api_key; keep it out of public logs. Review channel readership for author identities, comments and commit messages. Bot credentials are separate from BYOK encryption keys. For SaaS, hybrid, on-premises or telecom-operated deployments, coordinate HTTPS routing from the sender to the organization. Cloud needs an accessible endpoint; Data Center may use an agreed internal route. Users separately need repository access. Notifications do not move Bitbucket storage onto your own server. These receivers do not verify X-Hub-Signature HMAC; setting a webhook secret at the provider does not enable verification here or replace the bot API key. IDs are not independently deduplicated; repeat delivery can repeat messages.

Mercurial support was removed from Bitbucket Cloud; the legacy claim no longer applies. only_events and exclude_events use internal receiver names, such as push, not necessarily provider names such as repo:push. PR events use X-Event-Key; most other types come from the payload structure. account_id can map to the organization's Atlassian external profile field for silent mentions. branches=main,dev filters exact branch names independently per push.changes entry; tags are not excluded by the branch filter. It does not filter PR branches. Empty changes produce no message. Legacy route bitbucket2 remains compatible.

Bitbucket Cloud webhooks. Cloud support changes.

Logos are trademarks of their respective owners. None of the integrations on this page are created by, affiliated with, or supported by the companies represented by the logos.