Is it possible to use a git tag as a reference for the new code period (SQ EE)? I’m using the SQ REST API api/new_code_periods/set (SonarQube version 9.1)
Hi,
Welcome to the community!
What’s new & what’s not is calculated during analysis based on information from the server and what’s present in the analysis directory. So that puts a Git tag out of scope/reach.
That said, if your Git tag corresponds to an analysis in SonarQube, you can set that analysis as the baseline for the branch’s New Code Period.
HTH,
Ann