Documentation
¶
Overview ¶
Package github loads pull request status through the gh CLI.
Index ¶
Constants ¶
View Source
const Timeout = 20 * time.Second
Timeout bounds one FetchPRs call so a stuck gh cannot hang the app.
Variables ¶
View Source
var ( ErrNotGitHub = errors.New("origin is not a GitHub remote") ErrGhMissing = errors.New("gh CLI not found") ErrNoAccess = errors.New("gh cannot access this repository") )
View Source
var LookPath = exec.LookPath
LookPath locates executables; replaced in tests.
Functions ¶
func FetchPRsContext ¶
FetchPRsContext is FetchPRs bounded by ctx. gh is told never to prompt.
Types ¶
Click to show internal directories.
Click to hide internal directories.