Skip to content
This documentation applies to Codacy Self-hosted v13.0.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 as configured on your Git provider), 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. Enabling a new branch triggers an initial analysis of that branch and the analysis results and information for that branch will become available after the analysis is complete.

This page also displays the code quality grade for each enabled branch.

Managing branches

Note

If you're using Codacy Self-hosted you can also configure Codacy to automatically enable all new branches that are pushed to the repository.

Auto-enable new 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 November 24, 2022