Versions in this module Expand all Collapse all v0 v0.1.0 Feb 9, 2026 Changes in this version + func IsDependabotBranch(branchName string) bool + func MatchesBranchPattern(branchName, pattern string) bool + type ActionResult struct + Action string + Error error + Success bool + type BranchStatus struct + BehindBy int + HasConflict bool + UpToDate bool + type CheckStatus struct + AllPassing bool + Details string + NoChecks bool + Pending bool + type Client interface + GetBranchStatus func(ctx context.Context, owner, repo string, prNumber int) (*BranchStatus, error) + GetCheckStatus func(ctx context.Context, owner, repo, ref string) (*CheckStatus, error) + GetPullRequest func(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + ListPullRequests func(ctx context.Context, owner, repo, defaultBranch string) ([]PullRequest, error) + ListRepositories func(ctx context.Context, org string) ([]Repository, error) + MergePullRequest func(ctx context.Context, owner, repo string, prNumber int) error + PostRebaseComment func(ctx context.Context, owner, repo string, prNumber int) error + UpdateBranch func(ctx context.Context, owner, repo string, prNumber int) error + type MockClient struct + BranchStatuses map[string]*BranchStatus + CheckStatuses map[string]*CheckStatus + GetPRErr map[string]error + ListPRsErr map[string]error + ListReposErr error + MergeCalls []string + MergeErr map[string]error + PostRebaseCalls []string + PostRebaseErr map[string]error + PullRequests map[string][]PullRequest + Repositories []Repository + UpdateBranchCalls []string + UpdateBranchErr map[string]error + func NewMockClient() *MockClient + func (m *MockClient) GetBranchStatus(ctx context.Context, owner, repo string, prNumber int) (*BranchStatus, error) + func (m *MockClient) GetCheckStatus(ctx context.Context, owner, repo, ref string) (*CheckStatus, error) + func (m *MockClient) GetPullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + func (m *MockClient) ListPullRequests(ctx context.Context, owner, repo, defaultBranch string) ([]PullRequest, error) + func (m *MockClient) ListRepositories(ctx context.Context, org string) ([]Repository, error) + func (m *MockClient) MergePullRequest(ctx context.Context, owner, repo string, prNumber int) error + func (m *MockClient) PostRebaseComment(ctx context.Context, owner, repo string, prNumber int) error + func (m *MockClient) UpdateBranch(ctx context.Context, owner, repo string, prNumber int) error + type PullRequest struct + BaseBranch string + Draft bool + HeadBranch string + HeadSHA string + Mergeable *bool + Number int + RepoFullName string + RepoName string + State string + Title string + URL string + type RealClient struct + func NewRealClient(token string) *RealClient + func (c *RealClient) GetBranchStatus(ctx context.Context, owner, repo string, prNumber int) (*BranchStatus, error) + func (c *RealClient) GetCheckStatus(ctx context.Context, owner, repo, ref string) (*CheckStatus, error) + func (c *RealClient) GetPullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + func (c *RealClient) ListPullRequests(ctx context.Context, owner, repo, defaultBranch string) ([]PullRequest, error) + func (c *RealClient) ListRepositories(ctx context.Context, org string) ([]Repository, error) + func (c *RealClient) MergePullRequest(ctx context.Context, owner, repo string, prNumber int) error + func (c *RealClient) PostRebaseComment(ctx context.Context, owner, repo string, prNumber int) error + func (c *RealClient) UpdateBranch(ctx context.Context, owner, repo string, prNumber int) error + type Repository struct + Archived bool + DefaultBranch string + FullName string + Name string