I noticed that the default value for the “Long living branches pattern” isn’t quite right for our projects, and we have dozens of them. I’d really like to find a REST api process for changing this. I briefly browsed through the api pages, but I didn’t see an obvious way to do this. Can someone point me in the right direction?
Hi,
use POST api/settings/set
, needs admin permissions.
/api/settings/set?component=$projectkey&key=sonar.branch.longLivedBranches.regex&value=$pattern
Without component parameter = optional it will set the global setting.
Gilbert
1 Like
Thanks. I will try to ensure I don’t call that without the component parameter.