Hi,
How can we change the default branch on sonarqube dashboard? Always this shows as master branch only instead of other branch names. As we don’t have the default branch as master. Instead of master it should show dev/qa/prod as default branch.
Sharing screenshot
Thanks,
Priyanka
ganncamp
(G Ann Campbell)
December 8, 2021, 1:22pm
2
Hi Priyanka,
I think you’re looking for this:
Project administrators will be able to choose any project branch as the main branch in SonarQube.
If your project is created from GitHub, AzureDevOps, Bitbucket or GitLab, the main branch in SonarQube should correspond to the default branch...
At the same time, you do already have the ability to apply a new name to the current main branch:
HTH,
Ann
Thank you @ganncamp.Please let us know how we can allow a branch to refer the default as main branch.
ganncamp
(G Ann Campbell)
December 8, 2021, 2:29pm
4
Hi,
Sorry, but I don’t understand. Did you check the link I posted above?
Ann
Yes checked the above link.