Disable Azure DevOps PR Comments

tl;dr We’ve configured quality gates as status checks on PR’s in Azure DevOps. This stops developers from merging code that doesn’t pass the quality gate. It also adds a lot of comments to each PR. We’re looking to keep the gate, but disable the comments.

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    • SonarQube Developer Edition version
    • SonarScanner for MSBuild 5.15
    • Scan running in Azure DevOps Services (SonarQube Prepare 5.19.1, SonarQube Analyze 5.20.0, SonarQube Publish 5.6.1)
  • how is SonarQube deployed: zip, Docker, Helm
    • Sonar was deployed to AKS via Helm
  • what are you trying to achieve
    • Configure quality gates as an Azure DevOps status check WITHOUT automatically commenting on pull requests
  • what have you tried so far to achieve this
    • We’ve set up the Azure DevOps link in SonarQube, which works successfully. During a PR build, the scan runs as expected. We’ve set this up as a status check on Azure DevOps to prevent merging code that failed our quality gate. All of this works great, but since we’ve configured all of this, Sonar automatically adds comments to every PR it scans. We’re looking for a way to keep the gate in place, but disable commenting on the PR’s, as that information can be found in the Sonar scan and creates a lot of noise on the PR.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!


Welcome to the community and thanks for this post!

I’ve moved your thread to the Product Manager for a Day category since what you’re asking for doesn’t exist. And you’re not the first to ask for it. I’ll make sure the (full time) Product Managers see this.


Hi @icsmiller

Welcome to the community! Thanks for reaching out.
We are monitoring the topic right now. It is not something planned in the short-term roadmap, but it could evolve in the future depending on the traction.
I will store your request and let you know if we plan some changes in the future.



1 Like