Skip to content

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 📢

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 August 13, 2021