# Not receiving comments on Pull Request

**URL:** <https://community.sonarsource.com/t/not-receiving-comments-on-pull-request/136022>\
**Category:** SonarQube Cloud\
**Tags:** pull-request, coverage, sonarqube-cloud\
**Created:** [February 28, 2025, 12:00pm UTC](https://community.sonarsource.com/t/not-receiving-comments-on-pull-request/136022 "2025-02-28T12:00:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dieter-softsure](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dieter-softsure/32/62549_2.png) [@dieter-softsure](https://community.sonarsource.com/u/dieter-softsure)\
**Post date:** [February 28, 2025, 12:00pm UTC](https://community.sonarsource.com/t/not-receiving-comments-on-pull-request/136022/1 "2025-02-28T12:00:08Z")

</div>

- ALM Azure DevOps
- CI system Azure DevOps
- Scanner command used : dotnet sonarscanner begin -o:“softsure” -k:$apiServiceName -d:sonar.host.url=“[https://sonarcloud.io](https://sonarcloud.io)” -d:sonar.token=“_**" -d:sonar.projectBaseDir=“$(pwd)/” -d:sonar.cs.vscoveragexml.reportsPaths="\*\*/.coverage" -d:sonar.coverage.exclusions="**_/_DTO_” -d:sonar.pullrequest.key=“$pullRequestId” -d:sonar.pullrequest.branch=“$branchName” -d:sonar.pullrequest.base=“develop”
- Languages C#

Hi there

in my AzureDevops pipeline, I run a bash script to do the following

- determine what solutions to rebuild (could be one or more out of 200)
- calculate their sonar project name
- begin the sonar scan
- rebuild solution
- run unit tests
- end the sonar scan

it all works correctly, except that Sonar does not add the comment decorations on the Pull Request code review. Im quite sure that the Azure Devops personal access token is correct, as it works elsewhere but for another repository .

I’ve not specified sonar.pullrequest.provider as that parameter is deprecated apparently,

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [February 28, 2025, 2:00pm UTC](https://community.sonarsource.com/t/not-receiving-comments-on-pull-request/136022/2 "2025-02-28T14:00:51Z")

</div>

Hey there.

It doesn’t look like you’re using the [SonarQube Cloud Extension for Azure DevOps](https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/). Why not?

Without those tasks, you have to add some extra configuration:

> [@Publishing code analysis results to AzureDevops from docker](https://community.sonarsource.com/t/publishing-code-analysis-results-to-azuredevops-from-docker/97455/11):
>
> Hey @Plevi1337 Thanks for the details. My understanding is that when the project is bound there should be data that’s always available to SonarCloud when decorating PRs. That data doesn’t seem to be there on the PR you shared with me. This is data that is set also by the Extension for Azure DevOps (but only meant to be used when a project isn’t bound). That’s these analysis parameters and corresponding build variables: sonar.pullrequest.vsts.instanceUrl - System.TeamFoundationCollectionUri s…

---

<div class="post-metadata">

**Author:** ![dieter-softsure](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dieter-softsure/32/62549_2.png) [@dieter-softsure](https://community.sonarsource.com/u/dieter-softsure)\
**Post date:** [March 3, 2025, 8:52am UTC](https://community.sonarsource.com/t/not-receiving-comments-on-pull-request/136022/3 "2025-03-03T08:52:58Z")

</div>

Thanks Colin, I needed to add those 3 extra parameters as well as sonar.pullrequest.provider in order to get pull request decoration to work.

`sonar.pullrequest.vsts.instanceUrl` - `System.TeamFoundationCollectionUri`  
`sonar.pullrequest.vsts.project` - `System.TeamProject`  
`sonar.pullrequest.vsts.repository` - `Build.Repository.Name`  
`sonar.pullrequest.provider="VSTS"`

to answer your question though, I cant use the [SonarQube Cloud Extension for Azure DevOps](https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/) in this case, as I dont know which sonar project(s) will be analyzed in this CI pipeline. We have 200 microservice’s in a mono repo. the bash script dynamically determines which of the 200 were modified and individually rebuilds them while scanning with sonar.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [March 10, 2025, 8:53am UTC](https://community.sonarsource.com/t/not-receiving-comments-on-pull-request/136022/4 "2025-03-10T08:53:46Z")

</div>

Closed on March 10, 2025, 8:53am UTC

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