Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 v0.1.0 Jul 13, 2026 Changes in this version + var ErrBranchExists = errors.New("branch already exists") + var ErrIdempotencyConflict = errors.New("idempotency key conflicts with a different request") + var ErrIdempotencyKeyRequired = errors.New("idempotency key is required") + var ErrInvalidManagedFile = errors.New("file is not a declared managed file") + var ErrNoManagedFiles = errors.New("managed file list is required") + var ErrNotGitRepository = errors.New("not a git repository") + type BranchResult struct + Branch string + Replayed bool + type CommitInput struct + Files []string + IdempotencyKey string + Message string + type CommitResult struct + Commit string + Files []string + Replayed bool + type CreateBranchInput struct + Branch string + IdempotencyKey string + type Manager struct + func Open(root string, managed []string, executor source.GitExecutor) (*Manager, error) + func (m *Manager) Commit(ctx context.Context, input CommitInput) (CommitResult, error) + func (m *Manager) CreateBranch(ctx context.Context, input CreateBranchInput) (BranchResult, error) + func (m *Manager) Prepare(ctx context.Context, input PrepareInput) (PrepareResult, error) + func (m *Manager) Status(ctx context.Context) (Status, error) + type PrepareInput struct + EnvironmentID string + Plan *plan.Plan + Slug string + Validation *validation.Result + type PrepareResult struct + CommitMessage string + ReviewMarkdown string + Status Status + SuggestedBranch string + type Status struct + Branch string + ChangedFiles []string + Dirty bool + Head string + ManagedFiles []string + Root string + UnrelatedFiles []string