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:
parent
90a1e523fb
commit
8a0615ccfc
1 changed files with 114 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue