# Project does not pass the quality gate after successful Pull Requests

**URL:** <https://community.sonarsource.com/t/project-does-not-pass-the-quality-gate-after-successful-pull-requests/43524>\
**Category:** SonarQube Server / Community Build\
**Tags:** pull-request, sonarqube, scanner\
**Created:** [May 20, 2021, 9:32am UTC](https://community.sonarsource.com/t/project-does-not-pass-the-quality-gate-after-successful-pull-requests/43524 "2021-05-20T09:32:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsydorov](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rsydorov/32/22389_2.png) [@rsydorov](https://community.sonarsource.com/u/rsydorov)\
**Post date:** [May 20, 2021, 9:32am UTC](https://community.sonarsource.com/t/project-does-not-pass-the-quality-gate-after-successful-pull-requests/43524/1 "2021-05-20T09:32:07Z")

</div>

Hi,  
After migration to SonarQube 8.9 we faced behavior that we cannot understand. We have a Pull Request and did analysis for it and it passed the quality gate. Then we merged changes to the master branch and did branch analysis again and it failed with 1 new issue on the New Code.

We have default settings for New Code: “ **Previous version** : The New Code will be based on the analysis following the previous version.”

Conditions on New Code apply to all branches and to Pull Requests: Issues is greater than 0

Thank you

---

<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:** [May 20, 2021, 10:13am UTC](https://community.sonarsource.com/t/project-does-not-pass-the-quality-gate-after-successful-pull-requests/43524/2 "2021-05-20T10:13:30Z")

</div>

Hey there.

Let me suggest sharing:

- A screenshot of your project dashboard (main branch)
- A screenshot of the issue raised after merging your Pull Request (you can obscure the filename, but it should be clear what the issue is about)
- A screenshot of the pull request dashboard (in SonarQube)

---

<div class="post-metadata">

**Author:** ![rsydorov](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rsydorov/32/22389_2.png) [@rsydorov](https://community.sonarsource.com/u/rsydorov)\
**Post date:** [May 20, 2021, 12:13pm UTC](https://community.sonarsource.com/t/project-does-not-pass-the-quality-gate-after-successful-pull-requests/43524/3 "2021-05-20T12:13:53Z")

</div>

Unfortunately, we already fixed the sonar issue in the master branch and it already green. The issue was:  
(S107: Methods should not have too many parameters)

Once we faced this behavior again, I will add a screenshots here

---

<div class="post-metadata">

**Author:** ![rsydorov](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rsydorov/32/22389_2.png) [@rsydorov](https://community.sonarsource.com/u/rsydorov)\
**Post date:** [May 26, 2021, 11:41am UTC](https://community.sonarsource.com/t/project-does-not-pass-the-quality-gate-after-successful-pull-requests/43524/4 "2021-05-26T11:41:44Z")

</div>

We had the same issue again. Please take a look on attached screenshots.

 ![development](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/c/2/c2a298eb69efc5a7de81bd869c92d762a6fb5106.png)  
 ![issues](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/6/2/6298c8805b9936055dfc4189a9d21b3aad1efe35.png)  
 ![pull-request](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/3/8/3866d9b5874e272ce677e990333b4a9d001e7511.png)

SonarQube version is: Developer Edition Version 8.9 (build 43852)

---

<div class="post-metadata">

**Author:** ![cacti77](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/cacti77/32/14609_2.png) [@cacti77](https://community.sonarsource.com/u/cacti77)\
**Post date:** [June 5, 2025, 1:05pm UTC](https://community.sonarsource.com/t/project-does-not-pass-the-quality-gate-after-successful-pull-requests/43524/5 "2025-06-05T13:05:59Z")

</div>

I’ve posted a similar question to this at [Sonar scan passes the PR branch but then fails on the master branch after the PR has merged](https://community.sonarsource.com/t/sonar-scan-passes-the-pr-branch-but-then-fails-on-the-master-branch-after-the-pr-has-merged/142413)
