Versions in this module Expand all Collapse all v0 v0.9.1 Oct 8, 2026 v0.9.0 Oct 2, 2026 v0.8.0 Oct 1, 2026 Changes in this version + var ErrPullRequestNotFound = errors.New("pull request not found") + var ErrTokenForbidden = errors.New("token validation forbidden") + var ErrTokenValidationAPI = errors.New("token validation API error") + var ErrTokenValidationCanceled = errors.New("token validation canceled") + var ErrTokenValidationRateLimited = errors.New("token validation rate limited") + var ErrTokenValidationUnreachable = errors.New("token validation endpoint unreachable") + func ClassifyTokenValidationError(providerName string, status int, headers http.Header, cause error) error + type CreatePullRequestInput struct + Base string + Body string + Draft bool + Head string + Labels []string + Owner string + Repo string + Reviewers []string + Title string + type ForgeRemote struct + BaseURL string + Host string + Owner string + Provider string + Repo string + func ParseForgeRemote(raw string) (ForgeRemote, error) + type ListOptions struct + Page int + PerPage int + type Organization struct + Description string + Name string + URL string + type Provider interface + GetRateLimit func(ctx context.Context) (*RateLimit, error) + GetRepository func(ctx context.Context, owner, repo string) (*Repository, error) + ListOrganizationRepos func(ctx context.Context, org string) ([]*Repository, error) + ListOrganizations func(ctx context.Context) ([]*Organization, error) + ListUserRepos func(ctx context.Context, user string) ([]*Repository, error) + Name func() string + type ProviderWithAuth interface + SetToken func(token string) error + ValidateToken func(ctx context.Context) (bool, error) + type PullRequest struct + Base string + Draft bool + Head string + Kind string + Number int + Title string + URL string + type PullRequester interface + CreatePullRequest func(ctx context.Context, in CreatePullRequestInput) (*PullRequest, error) + FindPullRequest func(ctx context.Context, owner, repo, head, base string) (*PullRequest, error) + type RateLimit struct + Limit int + Remaining int + Reset time.Time + Used int + type Repository struct + Archived bool + CloneURL string + CreatedAt time.Time + DefaultBranch string + Description string + Disabled bool + Fork bool + FullName string + HTMLURL string + Language string + Name string + Private bool + PushedAt time.Time + SSHURL string + Size int + Stars int + Topics []string + UpdatedAt time.Time + Visibility string + type SyncAction string + const ActionCloned + const ActionFailed + const ActionSkipped + const ActionUpdated + type SyncOptions struct + DryRun bool + IncludeArchived bool + IncludeForks bool + IncludePrivate bool + Parallel int + TargetPath string + type SyncResult struct + Action SyncAction + Error error + Repository *Repository + type Syncer interface + SyncOrganization func(ctx context.Context, provider Provider, org string, opts SyncOptions) ([]SyncResult, error)