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 defined in the DevOps platform. But you may not import your project from these platforms. You'll then be able to select a branch as Main.
We are pleased to announce that this feature is now available in SonarQube 10.2. To start using this feature, follow these instructions to upgrade your SonarQube version.
To learn more about what the release has to offer, check out this announcement.
Questions or feedback? Leave us a note in our community forum.