Documentation
¶
Overview ¶
Package prlink finds the open pull request that holds the work checked out in a local working tree, from the discovery cache. Live sessions use it to show an agent session on its pull request, and hook refresh to refresh the pull request an agent session ended on. It reads git configuration and the cache only: it never contacts GitHub and never fetches.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Work ¶
type Work struct {
Repository, UpstreamRepository string
// Branch is the current branch, "" when HEAD is detached.
Branch string
// Upstream names the configured upstream branch on the same GitHub host;
// UpstreamRepository distinguishes a fork from the base repository.
Upstream string
// Head is the commit checked out.
Head string
}
Work is what a working tree has checked out, as far as pull requests go.
Click to show internal directories.
Click to hide internal directories.