Skip to main content

Module refs

Module refs 

Source
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§

RefMention

Enums§

RefKind
The two reference kinds materialized as annotates edge metadata (ref_kind on the edge – see crates/khive-pack-git/src/handlers.rs).

Functions§

dedupe_prefer_closes
Collapse duplicate numbers to a single mention, preferring Closes over Mentions when 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 s to at most max_chars characters (char-boundary safe, no ellipsis – the amendment specifies “truncated”, not a marker suffix).