Block github merge of pull requests when Sonacloud quality gate fails

Hello, general question, from github level, how can we block PRs from being merged if Sonarcloud scan fails ? and How do developer/author of a branch get notified when their build/quality gate fails?

Thanks in advance

Hello @Juan_Jose,

Are you using GitHub checks? If so, you can mark the SonarCloud check as mandatory, this will make merging the PR impossible if that check fails.

If you’re not using GitHub checks could you share a bit more about your set-up?