# GitHub PullRequest decoration not working

**URL:** <https://community.sonarsource.com/t/github-pullrequest-decoration-not-working/31763>\
**Category:** SonarQube Cloud\
**Tags:** pull-request, github\
**Created:** [September 23, 2020, 7:08am UTC](https://community.sonarsource.com/t/github-pullrequest-decoration-not-working/31763 "2020-09-23T07:08:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sboeing](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@sboeing](https://community.sonarsource.com/u/sboeing)\
**Post date:** [September 23, 2020, 7:08am UTC](https://community.sonarsource.com/t/github-pullrequest-decoration-not-working/31763/1 "2020-09-23T07:08:39Z")

</div>

Hej,

since several months we have already a project running in SonarCloud together with PullRequests and they are decorated fine in GitHub.  
But in the last days I created another project in the same organization the older project is already using. In the new project I have problems with the GitHub integration:

- PullRequests are not decorated (the SonarCloud check is not shown)
- When looking into the PullRequest in SonarCloud I don’t get this ‘See the PR’ link
- The PullRequest is named like the branch in SonarCloud. In the older project the PullRequest title is used as name

Maybe I missed some configuration or are my problems related to what i read in the following post that the UI/Settings changed a bit regarding configuration of GitHub?

> [@Cannot set sonar.pullrequest.provider to github](https://community.sonarsource.com/t/cannot-set-sonar-pullrequest-provider-to-github/30886):
>
> Github PR decoration is not working for my newly created projects. In the SonarCloud app, when I look at my project’s PR analysis, I see a warning: “Pull request decoration did not happen. Property ‘sonar.pullrequest.provider’ was missing.” My older projects have sonar.pullrequest.provider = GitHub, but I can’t seem to set that up for my newer projects (more than a couple months old, it seems). I have a project setup script that sets that via the API, but it no longer works – when I try to se…

Our organization is bound to GitHub since several months. I didn’t changed anything there…  
We are using TeamCity as build system and have a Kotlin & Gradle project. During the build we provide the following sonar parameter: `sonar.pullrequest.base`, `sonar.pullrequest.branch`, `sonar.pullrequest.key`, `sonar.pullrequest.provider=GitHub` (Only necessary in the new project), `sonar.login`, `sonar.host.url=https://sonarcloud.io`, `sonar.organization`, `sonar.projectKey`

Our organization/project is private but anyway that is the link: [SonarCloud](https://sonarcloud.io/organizations/eurofit24/projects)

Thank you very much in advance for any hint how to get the PullRequest decoration running 😉

---

<div class="post-metadata">

**Author:** ![Marcin\_Majewski](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marcin_majewski/32/15358_2.png) [@Marcin\_Majewski](https://community.sonarsource.com/u/Marcin_Majewski)\
**Post date:** [September 23, 2020, 8:09am UTC](https://community.sonarsource.com/t/github-pullrequest-decoration-not-working/31763/2 "2020-09-23T08:09:43Z")

</div>

Hi Sascha,

Just to clarify so I can understand the problem better, did you add this project manually or imported from GitHub? By importing from GitHub I mean clicking plus icon -\> “Analyze new project” and selecting the project from the GitHub organization.

Best,  
Marcin

---

<div class="post-metadata">

**Author:** ![sboeing](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@sboeing](https://community.sonarsource.com/u/sboeing)\
**Post date:** [September 23, 2020, 8:24am UTC](https://community.sonarsource.com/t/github-pullrequest-decoration-not-working/31763/4 "2020-09-23T08:24:20Z")

</div>

Hej Marcin,

if i understand it correctly i added it manually.  
In SonarCloud I opened our organization and created a new&empty project with a name and projectKey. Then I just ran an analysis from our build server which ‘pushes’ the code into the created project with the specified organizationKey and projectKey. With that way we are analysing our master branch as well as all our other branches/PullRequests

---

<div class="post-metadata">

**Author:** ![Marcin\_Majewski](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/marcin_majewski/32/15358_2.png) [@Marcin\_Majewski](https://community.sonarsource.com/u/Marcin_Majewski)\
**Post date:** [September 23, 2020, 8:31am UTC](https://community.sonarsource.com/t/github-pullrequest-decoration-not-working/31763/5 "2020-09-23T08:31:00Z")

</div>

Hi Sascha,

Is this project part of your GitHub organization? If it is, can you try adding it in the recommended way instead of manually creating new&empty project? (by recommended I mean clicking plus icon -\> “analyze new project” and select the project from your GitHub organization). This would probably solve your problems with PR decoration, links missing etc.

Best,  
Marcin

---

<div class="post-metadata">

**Author:** ![sboeing](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@sboeing](https://community.sonarsource.com/u/sboeing)\
**Post date:** [September 23, 2020, 9:59am UTC](https://community.sonarsource.com/t/github-pullrequest-decoration-not-working/31763/6 "2020-09-23T09:59:33Z")

</div>

Hej Marcin,

I tested it and it looks quite promising!  
Thank you very much for your help!

---

<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:** [September 30, 2020, 9:59am UTC](https://community.sonarsource.com/t/github-pullrequest-decoration-not-working/31763/7 "2020-09-30T09:59:37Z")

</div>

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