Versions in this module Expand all Collapse all v1 v1.0.1 Jun 2, 2026 Changes in this version + const EventComment + const EventPing + func DetectProvider(uri string) (model.SCMProvider, error) + type Client interface + BranchStatus func(ctx context.Context, owner, repo string, sourceBranch, targetBranch string) (*GitBranchStats, error) + Comment func(ctx context.Context, owner, repo string, number int, body string) error + CommentClose func(ctx context.Context, owner, repo string, number int, key string) error + CommentUpdate func(ctx context.Context, owner, repo string, number int, key, body string) error + FetchRepositoryMetadata func(ctx context.Context, identifier string) (*model.RepositoryMetadata, error) + GetPullRequest func(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + MergePR func(ctx context.Context, owner, repo string, number int, headSHA string) error + SetStatus func(ctx context.Context, owner, repo, sha string, state string, description string, ...) error + type GitBranchStats struct + AheadCount int + BehindCount int + Name string + type MergeError struct + Code int + Err error + Retryable bool + func NewMergeError(err error, code int) *MergeError + func (e *MergeError) Error() string + func (e *MergeError) Unwrap() error + type MockClient struct + func NewMockClient(ctrl *gomock.Controller) *MockClient + func (m *MockClient) BranchStatus(ctx context.Context, owner, repo, sourceBranch, targetBranch string) (*GitBranchStats, error) + func (m *MockClient) Comment(ctx context.Context, owner, repo string, number int, body string) error + func (m *MockClient) CommentClose(ctx context.Context, owner, repo string, number int, key string) error + func (m *MockClient) CommentUpdate(ctx context.Context, owner, repo string, number int, key, body string) error + func (m *MockClient) EXPECT() *MockClientMockRecorder + func (m *MockClient) FetchRepositoryMetadata(ctx context.Context, identifier string) (*model.RepositoryMetadata, error) + func (m *MockClient) GetPullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + func (m *MockClient) MergePR(ctx context.Context, owner, repo string, number int, headSHA string) error + func (m *MockClient) SetStatus(ctx context.Context, owner, repo, sha, state, description, targetURL string) error + type MockClientMockRecorder struct + func (mr *MockClientMockRecorder) BranchStatus(ctx, owner, repo, sourceBranch, targetBranch any) *gomock.Call + func (mr *MockClientMockRecorder) Comment(ctx, owner, repo, number, body any) *gomock.Call + func (mr *MockClientMockRecorder) CommentClose(ctx, owner, repo, number, key any) *gomock.Call + func (mr *MockClientMockRecorder) CommentUpdate(ctx, owner, repo, number, key, body any) *gomock.Call + func (mr *MockClientMockRecorder) FetchRepositoryMetadata(ctx, identifier any) *gomock.Call + func (mr *MockClientMockRecorder) GetPullRequest(ctx, owner, repo, number any) *gomock.Call + func (mr *MockClientMockRecorder) MergePR(ctx, owner, repo, number, headSHA any) *gomock.Call + func (mr *MockClientMockRecorder) SetStatus(ctx, owner, repo, sha, state, description, targetURL any) *gomock.Call + type PullRequest struct + Author string + BaseRef string + HeadSHA string + IsApproved bool + IsMerged bool + Number int + State string + UpdatedAt time.Time + type WebhookEvent struct + Body string + PRNumber int + Repo string + Sender string + Type string