Versions in this module Expand all Collapse all v0 v0.1.0 Sep 19, 2026 Changes in this version + const DefaultHost + const PRPollActive + const PRPollNoPR + const PRPollSettled + var ErrGHUnavailable = errors.New("gh CLI unavailable") + func CloneErrorMessage(stderr string) string + func DefaultCloneRoot() string + func IsNewerVersion(current, latest string) bool + func LooksLikeRepoRef(input string) bool + func MarshalPRInfo(info *PRInfo) string + func PollInterval(info *PRInfo) time.Duration + type AccountType string + const AccountTypeApp + const AccountTypePersonal + const AccountTypeUnknown + type AuthStatus struct + Account string + AccountType AccountType + Err error + GHInstalled bool + GraphQLLimit int + GraphQLRemaining int + GraphQLResetAt time.Time + LoggedIn bool + TokenValid bool + func CheckAuth(ctx context.Context) AuthStatus + func (s AuthStatus) Findings() []Finding + func (s AuthStatus) HasProblems() bool + type BranchFetcher func(ctx context.Context, repoDir string, branches []string) (*BranchPRs, error) + type BranchPRs struct + PRs map[string]*PRInfo + RateRemaining int + RateResetAt time.Time + func FetchPRsForBranches(ctx context.Context, repoDir string, branches []string) (*BranchPRs, error) + type CheckState string + const CheckStateFailing + const CheckStateNone + const CheckStatePassing + const CheckStatePending + type CloneDestination struct + Path string + Renamed bool + Reuse bool + type CloneError struct + Err error + Stderr string + func (e *CloneError) Error() string + func (e *CloneError) Unwrap() error + type Cloner struct + Command CommandBuilder + RemoteURL func(dir string) (string, error) + Root string + Run func(ctx context.Context, cloneURL, dest string) error + func (c Cloner) Clone(ctx context.Context, ref RepoRef, dest string) error + func (c Cloner) IsCheckoutOf(dir string, ref RepoRef) bool + func (c Cloner) Resolve(ref RepoRef) (CloneDestination, error) + type CommandBuilder func(ctx context.Context, workDir, name string, args ...string) *exec.Cmd + type Finding struct + Detail string + Message string + Severity Severity + type LatestRelease struct + URL string + Version string + func CLIVersionCheck(currentVersion string) *LatestRelease + func FetchLatestRelease() *LatestRelease + type PRInfo struct + Additions int + CheckState CheckState + Deletions int + IsDraft bool + MergeStateStatus string + Mergeable string + Number int + ReviewDecision string + State PRState + Title string + URL string + UpdatedAt time.Time + func LookupPR(ctx context.Context, repoDir, branch string) (*PRInfo, error) + func UnmarshalPRInfo(data string) *PRInfo + func (p *PRInfo) StatusDescription() string + func (p *PRInfo) StatusIcon() string + type PRPoller struct + func NewPRPoller() *PRPoller + func NewPRPollerWithFetcher(fetch BranchFetcher) *PRPoller + func (p *PRPoller) Poll(ctx context.Context, targets []PRTarget) []PRResult + type PRResult struct + Info *PRInfo + Target PRTarget + type PRState string + const PRStateClosed + const PRStateDraft + const PRStateMerged + const PRStateOpen + type PRTarget struct + Branch string + Known *PRInfo + RepoDir string + TaskID int64 + type RateLimitError struct + Detail string + ResetAt time.Time + func (e *RateLimitError) Error() string + type RepoRef struct + Host string + Name string + Owner string + SSH bool + func ParseRepoRef(input string) (RepoRef, error) + func RepoForDir(dir string) (RepoRef, error) + func (r RepoRef) CloneURL() string + func (r RepoRef) SameRepo(other RepoRef) bool + func (r RepoRef) Slug() string + func (r RepoRef) String() string + type Severity string + const SeverityError + const SeverityOK + const SeverityWarn