Versions in this module Expand all Collapse all v0 v0.30.1 Oct 30, 2026 Changes in this version + func Action(ctx context.Context, deps Deps, branchOrPR string, opts Options, ...) error + type Deps struct + Engine Engine + GitHub func() github.Client + GitHubError func() error + Out output.Output + Restack actions.RestackDeps + type Engine interface + ApplyRemoteMetadataForBranches func(ctx context.Context, branchNames []string) error + BatchUpsertPrInfo func(ctx context.Context, updates map[string]*engine.PrInfo) error + BranchNames func() *engine.BranchSet + CheckoutBranch func(ctx context.Context, branch engine.Branch) error + CreateBranch func(ctx context.Context, branchName string, startPoint string) error + FetchRemote func(ctx context.Context, req engine.RemoteFetchRequest) error + GetRemote func(ctx context.Context) string + ListWorktrees func(ctx context.Context) (git.WorktreeList, error) + LoadRemoteMetadataCache func(ctx context.Context) error + Merge func(ctx context.Context, revision string, opts engine.MergeOptions) error + MissingRemoteBranches func(ctx context.Context, branchNames []string) ([]string, error) + RemoteMetadataCache func() engine.RemoteMetadataView + ReparentBranch func(ctx context.Context, branch engine.Branch, newParent engine.Branch) error + ResetHard func(ctx context.Context, revision string) error + SetFrozen func(ctx context.Context, branches engine.Branches, state engine.FreezeState) (engine.BatchFreezeResult, error) + TrackBranch func(ctx context.Context, branchName string, parentBranchName string) error + TrackBranchPastLandedParent func(ctx context.Context, branchName string, parentBranchName string, ...) error + type Event struct + Branch string + Error error + IsNew bool + Message string + NewRevision string + PRNumber *git.PRNumber + Phase Phase + Type EventType + type EventType string + const EventCompleted + const EventProgress + const EventSkipped + const EventStarted + type Handler interface + Complete func(summary Summary) + EmitEvent func(event Event) + ReportLandedAncestors func(report LandedAncestorReport) (LandedAncestorDecision, error) + Start func(targetBranch string, prNumber *git.PRNumber) + type LandedAncestorDecision int + const LeaveFrozen + const UnfreezeAndRestack + type LandedAncestorReport struct + CanRestack bool + Reanchored []Reanchored + Stale []StaleBranch + func (r LandedAncestorReport) Unanchored() []string + func (r LandedAncestorReport) Unfreezable() []string + type NullHandler struct + func (h *NullHandler) Complete(_ Summary) + func (h *NullHandler) EmitEvent(_ Event) + func (h *NullHandler) ReportLandedAncestors(_ LandedAncestorReport) (LandedAncestorDecision, error) + func (h *NullHandler) Start(_ string, _ *git.PRNumber) + type Options struct + Downstack bool + Force bool + Restack bool + Unfrozen bool + type Phase string + const PhaseCheckout + const PhaseFetch + const PhaseMetadata + const PhaseSync + type Reanchored struct + Anchor string + Branch string + LandedPR *git.PRNumber + LandedParent string + NewParent string + type StaleBranch struct + Anchored bool + Frozen bool + Name string + type Summary struct + BranchesCreated int + BranchesUpdated int + IsFrozen bool + Restacked int + TargetBranch string + UpToDate bool