Skip to main content

Module refs

Module refs 

Source
Expand description

References in commit messages and branch names (plan D7).

Pure: what a token means depends on the repository’s linked ISSUES and PULLS families, handed in as a RefContext. Unlinked means nothing is a link. The TUI and the CLI both scan through here, so they cannot disagree about what ABC-12 or #7 refers to.

Offsets are char offsets into the scanned text, [start, end).

Structs§

FoundRef
One reference found in a message or branch name.
IssueLinker
The linked issue tracker.
KnownCard
A Trello card known from the cached snapshot.
PullLinker
The linked pull-request source.
RefContext
From the repository’s two links; both None = nothing is a link.

Enums§

RefKind

Functions§

from_branch
The issue a branch name names: ABC-123-x / feature/ABC-123 (Jira), 123-slug (the other trackers; Trello through its cached cards).
scan_message
Every reference in a commit message, in order, that the linked sources give a meaning to.