Is there a way to configure SonarQube to only comment in Github PR when the gate fails?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    • SonarQube 10.2.1
  • how is SonarQube deployed: zip, Docker, Helm
    • Helm
  • what are you trying to achieve
    • Configuring Github comments to be less noisy
  • what have you tried so far to achieve this
    • Unable to find any documentation around the subject

As the topic states, some developers tend to find the comments to be “noisy” when it is informing them that they are passing the quality gate. Is there a way to configure such that only comment on fail? Or no comments at all?

Hi,

Unfortunately, this isn’t possible. And you aren’t the first to ask for quieter reporting. I’m going to flag this for internal attention. (But I’m not going to hold my breath waiting for action. :frowning:)

 
Ann

Thanks for flagging this for internal attention.

Is there a way to configure this such that no PR comments appear at all? Perhaps on the Github App permission side?

Would this perhaps be part of the open source code that accepts contribution?

Hi,

The only way to do this would be to unbind the project, I think - so delete the GitHub repo configuration at the project level. And this would remove all PR decoration, both passed and failed.

No, I don’t think so. Not unless you can find an open Jira ticket for it.

 
Ann