issuemention

package
v0.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Declared(text string) map[string]string

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

func Mentioned(text string) []string

Mentioned returns every issue id text names, declarations included, once each, in the order first named.

func Undeclared

func Undeclared(title, body string) []string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL