Zulip supports both Git and Mercurial notifications from Bitbucket. This integration is for the old-style Bitbucket webhooks used by Bitbucket Enterprise.
First, create the stream you'd like to use for Bitbucket notifications,
and subscribe all interested parties to this stream. The integration will
use the default stream commits
if no stream is supplied in the
hook; you still need to create the stream even if you are using this
default.
Next, from your repository's web page, go to the Administration page and choose Hooks on the left-hand side.
Choose the POST
hook from the list presented and click "Add hook." Make sure to replace the
@
in the bot's email address with %40
,
as Bitbucket will not execute the hook if the username contains a @
.
In the URL field, enter
{{ external_uri_scheme }}bot_email:bot_api_key@{{ external_api_path_subdomain }}/v1/external/bitbucket
:
By default, notifications are sent to the commits
stream.
To send notifications to a different stream,
append ?stream=stream_name
to
the URL.
Congratulations! You're done!
Whenever you push code to your repository,
you'll get an automated notification that looks like this: