Hi
I have tried to remove the projectVersion when a branch is being build, but this still does not work.
It looks like if I do not set sonar.projectVersion it just defaults to 1.0.
I did a test where the GIT updates look like this.
The Merged commits are on the main branch and the three other commits are on the new branch. I did two analysis on the new branch that used sonar.newCode.referenceBranch=main and no projectVersion.
When I view the main branch afterwards The new code is now the code that was added in the two commits “New member” and “Second new line” but NOT “Added new code”.
This makes no sense to me why these two would be the new ones.
I do not understand how I can make the “New code” on main the changes since the last pull request to main. We are not allowing commits directly to main.
Also UI is showing. “New Code Since 87c8940f33efc92f96d9055109191148ef0dcb18”
/Thanks
