Is PR analysis independent of default branch analysis present in Sonar Qube?

Sonar dashboard is tracking master as the default branch. (not doing analysis on any other branch)

Now if I do PR analysis from a feature branch to some other long lived branch (say Release), what would be the new code?

Will sonar compare feature branch with master (since only analysis of master is present in dashboard, not any other branch)
Or will it compare feature branch with Release for new code analysis

To summarize, is PR analysis independent of master branch analysis already present in SonarQube or not?

Hi Arpit,

We’d expect to have awareness of the target branch first; i.e. you should scan Release before you attempt to analyze a PR branch that targets Release.