Git Branches Configuration
- Codiga supports the analysis of multiple branches.
- Automated code reviews do not need to have any branch specified.
When the default branch is not set, Codiga uses the default
branch of your repository, similar to which branch would be checked
out when you run
git clone <url-of-repository>.
For GitHub and Bitbucket accounts, the default branch used for push notifications
main, respectively. You can change the default branch name.
Add additional branches
To track more branches, go to your project preferences. Click on the "Branches" tab, add the list of branches you want to support.
You have to set up a default branch before tracking other branches.
Show dashboard for a specific branch
You can display the dashboard of a specific project for a particular branch. By default, the default branch is shown. You can specify the branch to show using the branch selector, as shown below.
Show analyses for a specific branch
You can display the list of analyses for a project for a particular branch. By default, the default branch is shown. You can specify the branch to show using the branch selector.