Expand description
GitHub reference-grammar extraction (ADR-088 Amendment 1, ingest
enrichment riders): Closes/Fixes/Resolves #N and bare #N mentions in
commit messages and issue/PR bodies.
Extraction never panics or errors – fail-open per the amendment. A
malformed shape (#54abc, a # with no digits after it) is simply not
matched, not reported as an error.
Structs§
Enums§
- RefKind
- The two reference kinds materialized as
annotatesedge metadata (ref_kindon the edge – seecrates/khive-pack-git/src/handlers.rs).
Functions§
- dedupe_
prefer_ closes - Collapse duplicate
numbers to a single mention, preferringClosesoverMentionswhen both occur for the same number (a closing reference is strictly more informative). - extract_
references - Extract every GitHub-style issue/PR reference from
text. - truncate_
chars - Truncate
sto at mostmax_charscharacters (char-boundary safe, no ellipsis – the amendment specifies “truncated”, not a marker suffix).