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