Is it possible to disable PR decorations programatically?

Hi! We’ve recently migrated our monorepo to use multiple Sonar projects instead of one project for the whole repo. The problem is that now we get a PR comment per project. I see in the UI there’s an option to disable PR decorations, but that would take a very long time to do manually for each project. There is a key that is mentioned sonar.pullrequest.github.summary_comment , but it doesn’t actually work if I set it to false.

Enable summary comment
Enable the summary comment in the Conversation tab when decorating Pull Requests
Key: sonar.pullrequest.github.summary_comment
Default: true (SonarQube Cloud's default)

Is it possible to disable PR decorations programatically in any way? Either via a sonar property or using the sonarcloud API? Thank you.

Hi,

You could script setting this.

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