mschmid
(Matthias Schmid)
July 6, 2020, 8:52pm
1
Hi,
in my project I work 95% of the time on the develop branch. This is why I want to see develop as default in sonarcloud.io .
CI system used: Github Actions
Scanner command used when applicable: SonarSource/sonarcloud-github-action@v1.3
Languages of the repository: JavaScript
However, there seems to be no option to select “develop” as main branch. The master branch shows up as master and the develop branchs as develop - which is correct - but I want to see the develop as main branch.
In another Sonarcloud.io project it is configured like this, but I don’t know how to get this accomplished.
Best,
Matthias
1 Like
Hello,
I’m afraid this is not possible on SonarCloud or SonarQube to change the flag “MAIN BRANCH” easily until https://jira.sonarsource.com/browse/MMF-1335 is implemented.
I see a workaround made of these steps:
delete the “develop” branch you currently have
rename “master” to “develop” through the “Manage branches” link available in the bottom of the list
analyze “master” and “develop” branches so the data are populated in the correct branches in SonarCloud
Alex
2 Likes
system
(system)
Closed
March 9, 2021, 10:58am
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.