Skip to content

Bitbucket integration#

The Bitbucket integration incorporates Codacy on your existing Git provider workflows.

When the integration is enabled, you can create pull request comments and Jira issues directly from Codacy when browsing the existing issues on the repository:

Bitbucket integration for issues

Depending on the configuration of the Bitbucket integration, Codacy can also report and notify you about issues directly on your pull requests.

Enabling the Bitbucket integration#

To enable the Bitbucket integration, open your repository Settings, tab Integrations. When you add a new repository, the integration is already enabled by default.

Bitbucket integration

If you remove the integration, you can enable it again as follows:

  1. Click the button Add integration and select Bitbucket on the list.
  2. Click the button Enable and follow the instructions.


    The user that enables the integration must have administrator access to the repository. Codacy uses this Bitbucket user to create comments on pull requests.


    We recommend that you use a dedicated service account for integrating Codacy with your repositories. This will avoid disruption of service if the user who originally enabled the integration stops having access to the repository, such as when the user leaves the team or the organization.

    For more information and instructions on how to set up a dedicated service account see Why did Codacy stop commenting on pull requests?

Configuring the Bitbucket integration#

To configure the Bitbucket integration, open your repository Settings, tab Integrations.

Depending on the options that you enable, Codacy will automatically update pull requests on Bitbucket with extra information when accepting pull requests:

Pull Request Status#

Adds a report to your pull requests showing whether your pull requests and coverage are up to standards or not as configured on the quality settings of your repository. To see the coverage status, ensure that you enable the option Coverage in the quality settings.

After enabling this option, you can set Codacy as a required check before merging your pull requests.

Pull request status on Bitbucket

Pull Request Comment#

Adds comments on the lines of the pull request where Codacy finds new issues. Click on the links to open Codacy and see more details about the issues and how to fix them.

Pull request comment on Bitbucket

Pull Request Summary#

Shows an overall view of the changes in the pull request, including new issues and metrics such as complexity and duplication.

Pull request summary on Bitbucket

Share your feedback 📢

Let us know if this page was helpful:

Thank you for the feedback!

We're sorry to hear that. Please let us know what we can improve.

If you have a question or need help, please ask our community or contact

Last modified September 6, 2021