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.
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.
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.
Thank you for your activity on this thread - we recognize your pain!
I have some level of news:
For SonarQube Server LTA version 2025.1 we have implemented a toggle to allow you to disable comments on PR for AzureDevops (see screenshot - “Enable Inline Pull Request Annotations”). We recommend you to upgrade to the latest (LTA) version of Server to benefit from this feature.
For SonarQube Cloud, we continue to gather and note your feedback as insights for now, although we recognize this is still a gap for our Cloud users.
We also recognize we could be doing something more clever, like allowing some level of customization of PR comments to reduce the noise without disabling the feature, which could enhance the experience. However, we do not have short term plans for these improvements as of yet, though I’ve shared the insights with our product team.
We appreciate your active feedback, thank you for helping us shape SonarQube!