Branch Management and PR Decoration doesn't work

Template for a good new topic, formatted with Markdown:

  • ALM used: GitHub
  • CI system used: AWS CodeBuild (integrated with GitHub)
  • Scanner command used:
    dotnet sonarscanner begin /k:$SONAR_PROJECT_KEY /d:sonar.login=$SONARQUBE_PROJECT_GUID /d:sonar.host.url=$SONAR_URL /o:$SONAR_Organization /d:sonar.cs.opencover.reportsPaths=$BUILD_PATH/test/$UNITTEST_PROJECT/coverage.opencover.xml /d:sonar.coverage.exclusions="*Tests.cs"
  • Languages of the repository: c#

GitHub Settings: SonarCloud App is installed and granted access to the repository
SonarCloud Settings: Project > Administration > General Settings > Pull Request
sonar.pullrequest.provider : GitHub
Enable summary comment: true

I’ve already read all the available documentation and guides about how to set up Pull Requests Decoration. But never saw a line from the SonarCloud on the Conversation tab of any my PR. Do you have any suggestion what I’m doing wrong?

Hi @olgasavchuk,

Welcome to our community forum!

SonarCloud doesn’t put inline annotation per issue in the Conversation tab anymore, instead it put a single comment at the end of the Converstation tab with the overview result of the PR analysis.

Out of curiosity, what made you expect to have those inline annotations ?

Thanks

Hi @aurelie, Thanks for your quick reply.

I don’t expect inline annotation in the Conversation tab (I’m aware that this feature was deprecated). I’m talking about exactly that single comment at the end of the Conversation tab. When I create a PR, after SonarCloud Analisys is done and posted to SonarCloud UI I don’t see any result in my PR at all - this is the issue I have.

Hi @olgasavchuk,

So sorry about that, I’ve went too quickly on your post!

To decorate PR, you have to actually pass specific parameters to the scanner (that I don’t see in your command). Have you tried that ?

If you’ve tried that, do you see in SonarCloud:

  • Your PRs analyzed ?
  • When you look at a PR on SonarCloud:
    • do you see the link to the PR in the top-right corner?
    • do you see a warning box (in yellowish background) in the top-right corner?

Cheers

Passing specific parameters has solves the issue. Thanks!

I thought those parameters somehow are defined automatically by SonarCloud…

1 Like

They are for some CI that we support :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.