What
The code review feature can now attach a severity to each finding it reports:
important: a bug the change adds or makes worse.pre_existing: a bug that was there before the change.nit: a minor issue.
The field is optional and is set only when the review instructions ask for it. Before, findings had no severity at all. Along with it:
- The review instructions add rules for ranking findings by severity, and say a severity only labels and orders a finding and must never be a reason to drop one.
- Review comments are told to open with the severity in words instead of an emoji.
- New prompt variants were added:
bugs-conventions-v1,bugs-conventions-xhigh-v1andbugs-conventions-max-v1. - The review's usage records gain a
cellfield.
No separate gate, a remote switch, was found for this.
Why
Review output, including comments posted on pull requests, can now separate new bugs from old ones and from small issues, so the most important findings are easier to spot.