Documentation
¶
Overview ¶
Package taskref resolves the ways people name a task: "5187", "#5187", a task branch such as "task/5187-fix-login", or a GitHub PR URL. These are the references the TUI's go-to-task palette recognizes exactly. Anything looser, like words from a title, is a search and belongs to the palette.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PRNumberFromURL ¶
PRNumberFromURL returns the PR number in a GitHub PR URL, or 0.
func Resolve ¶
Resolve returns the one task ref names, or nil when it names none or more than one: an ID with no task, a PR several tasks share, or search text.
func SearchText ¶
SearchText is what to hand the palette for ref: a PR URL cut down to github.com/org/repo/pull/N, so a pasted ".../pull/N/files" still finds the task, and anything else as typed.
func TaskIDFromBranch ¶
TaskIDFromBranch returns the task ID in a branch name such as "task/1068-description", or 0.