Changing the default branch name on sonarqube dashboard

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

Hi Priyanka,

I think you’re looking for this:

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.

Hi,

Sorry, but I don’t understand. Did you check the link I posted above?

 
Ann

Yes checked the above link.