Quality Gate - New Issues on "Old" Code

Hi,

Our current Quality Gate is configured to block pull requests if there are more than 0 issues (of any type). However, we would like to implement a rule that allows 0 new issues on “old” (or overall) code.

Example:
You change the API, but the code that uses this API remains untouched. An issue is created in the background, but it does not appear in the PR report. As a result, the PR is not blocked, and you can merge changes to the API even though they introduce new issues.

How can we address this problem?

We are working on a C++ project, and “new code” is currently defined as the previous version.

Thanks a lot!

Hi,

Unfortunately, you simply can’t enforce overall conditions on PRs. Worse, not all new issues on old code will be detected in PR analysis.

 
:frowning:
Ann