Skip to content
This documentation applies to Codacy Self-hosted v5.1.0

For the latest updates and improvements, see the latest Cloud documentation instead.

Managing branches#

Codacy automatically triggers analysis on the main branch of your repository (typically master or main), and also supports analyzing multiple branches.

To change the main branch of your repository or enable analysis on other branches, open your repository Settings, tab Branches:

Managing branches

Codacy manages pull request branches and inactive branches as follows:

  • Pull request branches

    Codacy automatically analyzes branches corresponding to new pull requests, as long as the target branches of the pull requests are enabled.

    Codacy stops analyzing these branches when the pull requests are merged or closed.

  • Inactive branches

    Codacy automatically disables analysis for branches that don't have any commits for more than 2 weeks, except for the main branch and pull request branches that are analyzed automatically.

Share your feedback 📢

Did this page help you?

Thanks for the feedback! Is there anything else you'd like to tell us about this page?

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

Alternatively, you can create a more detailed issue on our GitHub repository.

Thanks for helping improve the Codacy documentation.

If you have a question or need help please contact support@codacy.com.

Last modified August 13, 2021