Documentation
¶
Overview ¶
Package issuemention is RS004's vocabulary in Go: the issue ids a text names, and the relation it declares to each with a `Resolves:` or `Refs:` line.
scripts/check-issue-resolution.sh decides the rule (MENTION_RE, DECLARE_RE) and runs in CI without Go, so the two share a test rather than code (TestUndeclaredMatchesTheGate). This is its one Go copy, and a leaf: the shell guard judges a pull request's title and body with it before gh posts them (iss-2610261152125261), `abcd land` judges the body it composes with it, and capture's mentions listing reads history with it, and capture sits above the guard.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Declared ¶
Declared returns the relation text declares to each id it declares one to: "Resolves" or "Refs". `Resolves:` outranks `Refs:` when a text carries both for one id, since the stronger claim is the one its author answers for.
func Mentioned ¶
Mentioned returns every issue id text names, declarations included, once each, in the order first named.
func Undeclared ¶
Undeclared returns the ids a pull request's title or body names that neither declares, once each, in the order first named: RS004 over a pull request, whose declaration set is read from both halves, since a title has no room for a trailer.
Types ¶
This section is empty.