Use Bitbucket with Slack

Bitbucket offers free source code hosting for Git and Mercurial projects. If your team uses Bitbucket to manage work, you can integrate the Bitbucket app with your Slack workspace.

Here’s how this integration works: the app will post a message to your chosen Slack channel when code is committed to a Bitbucket repository. 

Don't forget: You'll need a Bitbucket account to set up this integration. Also, Slack doesn't support Bitbucket Server (the self-hosted version).  

Set up the Bitbucket app

Step 1: Set up Slack for Bitbucket

  1. Visit the Bitbucket page in the Slack App Directory.
  2. Click Install or Add Configuration.
  3. Choose a channel where Bitbucket alerts will be posted.
  4. Click Add Bitbucket Integration.

Step 2: Set up Bitbucket for Slack

  1. From Bitbucket, open your repository and click Settings in the left navigation.
  2. Under Workflow, click Webhooks, then select the Add webhook button.
  3. Give your webhook a unique name and paste your webhook URL (you’ll find this under Webhook URL on the Slack App Directory page). Click Save.

Step 3: Save your Bitbucket configuration

  1. Return to your Bitbucket integration configuration to add an optional description or a custom name or icon for the app.
  2. Click Save Integration to complete setup.


Related Articles

Recently Viewed Articles