SonarCloud long-lived and short-lived branches

Hello,

I would like to globally change the token for identifying long-lived branches to an organization.

Looking at the documentation Branch Analysis Setup | SonarCloud Docs in the topic “Branch name pattern” there is only the option to change via project and only via sonarcloud portal. I didn’t find any option via API.

How can I proceed with a global change or create an automation via API to perform this adjustment at the time of project/branch creation?

Hi,

Welcome to the community!

Have you tried this via the UI? The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.

 
HTH,
Ann