Versions in this module Expand all Collapse all v0 v0.1.0 Jul 30, 2026 Changes in this version + const StateAll + const StateClosed + const StateMerged + const StateOpen + var RemoteFn func() (string, error) + func Bool(b bool) *bool + func Detect(forgeFlag, repoFlag string) (forge, repo string, err error) + func Int(i int) *int + func ParseRemote(remote string) (forge, repo string, err error) + func String(s string) *string + type BaseError struct + func NewBaseError(msg, help string) *BaseError + func (e *BaseError) Error() string + func (e *BaseError) Help() string + func (e *BaseError) Message() string + type CheckSummary struct + Passed int + Total int + type Forge interface + Issues func() IssueService + Labels func() LabelService + PRs func() PRService + type Issue struct + Author string + Body string + CreatedAt time.Time + Extras map[string]any + Labels []Label + Number int + State string + Title string + URL string + UpdatedAt time.Time + type IssueCloseOptions struct + Number int + type IssueCreateOptions struct + Assignees []string + Body *string + Labels []string + Title *string + type IssueGetOptions struct + Number int + type IssueListOptions struct + Direction string + Labels []string + Limit int + Page int + Sort string + State string + type IssueReopenOptions struct + Number int + type IssueService interface + Close func(ctx context.Context, opts IssueCloseOptions) (*Issue, error) + Create func(ctx context.Context, opts IssueCreateOptions) (*Issue, error) + Get func(ctx context.Context, opts IssueGetOptions) (*Issue, error) + List func(ctx context.Context, opts IssueListOptions) ([]Issue, *ListMeta, error) + Reopen func(ctx context.Context, opts IssueReopenOptions) (*Issue, error) + Update func(ctx context.Context, opts IssueUpdateOptions) (*Issue, error) + type IssueUpdateOptions struct + Assignees []string + Body *string + Labels []string + Number int + State *string + Title *string + type Label struct + Color string + Description string + Exclusive bool + Extras map[string]any + Name string + Scope string + type LabelCreateOptions struct + Color *string + Description *string + Exclusive *bool + Name string + Scope *string + type LabelDeleteOptions struct + Name string + Scope string + type LabelListOptions struct + Limit int + Page int + type LabelService interface + Create func(ctx context.Context, opts LabelCreateOptions) (*Label, error) + Delete func(ctx context.Context, opts LabelDeleteOptions) error + List func(ctx context.Context, opts LabelListOptions) ([]Label, error) + Update func(ctx context.Context, opts LabelUpdateOptions) (*Label, error) + type LabelUpdateOptions struct + Color *string + Description *string + Exclusive *bool + Name string + NewName *string + NewScope *string + Scope string + type ListMeta struct + Count int + Total int + type PR struct + Author string + BaseRef string + Body string + Checks *CheckSummary + CreatedAt time.Time + DependedOnBy []int + DependsOn []int + Extras map[string]any + HeadRef string + Number int + Reviewers []ReviewState + Stack string + State string + Title string + URL string + UpdatedAt time.Time + type PRCloseOptions struct + Number int + type PRCreateOptions struct + BaseRef *string + Body *string + Draft *bool + HeadRef *string + Stack *string + Title *string + type PRGetOptions struct + Number int + type PRListOptions struct + Direction string + Limit int + Page int + Sort string + State string + type PRMergeOptions struct + Body *string + Method *string + Number int + Title *string + type PRService interface + Close func(ctx context.Context, opts PRCloseOptions) (*PR, error) + Create func(ctx context.Context, opts PRCreateOptions) (*PR, error) + Get func(ctx context.Context, opts PRGetOptions) (*PR, error) + List func(ctx context.Context, opts PRListOptions) ([]PR, *ListMeta, error) + Merge func(ctx context.Context, opts PRMergeOptions) (*PR, error) + Update func(ctx context.Context, opts PRUpdateOptions) (*PR, error) + type PRUpdateOptions struct + Number int + Title *string + type ReviewState struct + Login string + State string + type StructuredError interface + Help func() string + Message func() string