Versions in this module Expand all Collapse all v0 v0.36.0 Sep 12, 2026 v0.35.0 Sep 12, 2026 Changes in this version + const DefaultRemote + func BaseMoved(ctx context.Context, repo, remote, defaultBranch, base string) bool + func BranchName(pattern, taskName, runID string, now time.Time) string + func Commit(ctx context.Context, w Worktree, message string) (sha string, created bool, err error) + func CommitMessage(p Provenance) string + func DefaultBranch(ctx context.Context, repo, remote string) string + func Fetch(ctx context.Context, repo, remote string) error + func FindPR(ctx context.Context, dir, branch string) (number int, url string, found bool) + func HeadRevision(ctx context.Context, dir string) (string, error) + func IsRepo(ctx context.Context, dir string) bool + func MergeConflicts(ctx context.Context, repo, remote, defaultBranch, head string) (conflicts bool, ok bool) + func OpenPR(ctx context.Context, dir, branch, base, title, body string) (number int, url string, created bool, err error) + func PRBody(p Provenance) string + func PRTitle(p Provenance) string + func Prune(ctx context.Context, repo string) error + func Push(ctx context.Context, w Worktree, remote, commit string, ownedByRun bool) (created bool, err error) + func RemoteBranchExists(ctx context.Context, repo, remote, branch string) (bool, error) + func RemoteExists(ctx context.Context, repo, remote string) bool + func Remove(ctx context.Context, w Worktree) error + func Stage(ctx context.Context, w Worktree) (bool, error) + func WorktreeRoot(repo string) string + type ErrBranchNotOurs struct + Branch string + Remote string + func (e ErrBranchNotOurs) Error() string + type ErrPRUnsupported struct + Reason string + func (e ErrPRUnsupported) Error() string + type Provenance struct + Base string + Description string + Occurrence string + RunID string + Task string + TaskRevision string + Verification string + type Publication struct + Branch string + Commit string + CreatedBranch bool + CreatedCommit bool + CreatedPR bool + PRNumber int + PRURL string + Remote string + type Worktree struct + Base string + Branch string + Path string + Repo string + func Create(ctx context.Context, repo, branch string) (Worktree, error) + func (w Worktree) Changed(ctx context.Context) (bool, error) + func (w Worktree) Dirty(ctx context.Context) (bool, error) + func (w Worktree) Revision(ctx context.Context) (string, error)