Hi, I bought paid plan. I added my Swift project but I can’t change branch. How can I change default branch on sonacloud project.
Hi,
Welcome to the community!
For the record, the functionality is the same whether or not you’re on a paid plan.
Regarding your question, I believe the default branch should be picked up automatically when you import the repository. Could you explain your situation in more detail?
Ann
I want to change default branch on my private repo. But I can’t.
Hi,
Is the new branch - the one that you want to make the default - marked as the default branch in your SCM?
Ann
default branch on SonarCloud. But i don’t want to analyze Default branch.
I want to analyze release/uat branch
Hi,
You can analyze any branch you want.
My question is whether the branch you want to be the default/main branch in SonarCloud is marked as the Default branch in GitHub. E.G.:
Ann
Yes, default branch selected in github. But I want to change analyze branch on Sonarcloud. My repository has many branches. But i can’t see others. just I see default branch.
Hi,
I’ll be honest and say that once you’ve established a main branch in SonarCloud, I don’t think you can change to a different one. And I think it’s a reasonable expectation, so I’m going to ping the Product Managers on this.
At the same time, it’s entirely possible to see all the branches under analysis in SonarCloud, on the Branches tab, e.g.
HTH,
Ann
Hi,
So the problem is that you’re not analyzing the other branches. Are you asking for help in getting that set up? The docs should help.
Ann
Oops. Here’s the right docs link:
Sorry about that,
Ann