Watch
0
0
Fork
You've already forked hyperhive
0

review classifier: it reads the PR's title and description, and a rule on closing keywords

The controller reads the PR's title and description with the rest of it and
puts both in the run's shared context, ahead of the commits. An empty
description reads as `(none)`. `TryOut` carries them as optional fields, so a
controller that sends none still gets its run answered.

New rule `closes-only-finished-issues`: a description that carries a closing
keyword for an issue and also says the PR leaves part of it undone is a
violation, because the keyword closes the issue when the PR merges.
This commit is contained in:
argus 2026-11-23 00:49:11 +01:00 • committed by mara
commit 8a0615ccfc

View file

@ -151,3 +151,15 @@ classifications:
applicable.
polarity: negative
threshold: 70
- name: closes-only-finished-issues
description: >-
The PR description uses a closing keyword for an issue (`Closes #N`,
`Fixes #N`, `Resolves #N`) and also says that this PR does not finish
that issue: part of it is left for a follow-up, "not done", "still
open", "remaining", "what's left". A closing keyword closes the issue
when the PR merges, so only a PR that finishes the issue may carry one;
a partial PR says `Refs #N`. A description with no closing keyword, or
whose closing keyword stands beside nothing that says work is left,
makes the question not applicable.
polarity: negative
threshold: 70