Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + const DefaultHTTPTimeout + type BitbucketClient struct + func NewBitbucketClient(token string) *BitbucketClient + func NewBitbucketServerClient(baseURL, token string) *BitbucketClient + func (c *BitbucketClient) CreateMergeRequest(ctx context.Context, ...) (*MergeRequest, error) + func (c *BitbucketClient) GetCloneURL(repo string) string + func (c *BitbucketClient) GetRepository(ctx context.Context, name string) (*Repository, error) + func (c *BitbucketClient) ListRepositories(ctx context.Context) ([]Repository, error) + func (c *BitbucketClient) ValidateCredentials(ctx context.Context) error + type Client interface + CreateMergeRequest func(ctx context.Context, ...) (*MergeRequest, error) + GetCloneURL func(repo string) string + GetRepository func(ctx context.Context, name string) (*Repository, error) + ListRepositories func(ctx context.Context) ([]Repository, error) + ValidateCredentials func(ctx context.Context) error + func NewClient(hostType, baseURL, token string) (Client, error) + type GitHubClient struct + func NewGitHubClient(token string) *GitHubClient + func NewGitHubEnterpriseClient(baseURL, token string) *GitHubClient + func (c *GitHubClient) CreateMergeRequest(ctx context.Context, ...) (*MergeRequest, error) + func (c *GitHubClient) GetCloneURL(repo string) string + func (c *GitHubClient) GetRepository(ctx context.Context, name string) (*Repository, error) + func (c *GitHubClient) ListRepositories(ctx context.Context) ([]Repository, error) + func (c *GitHubClient) ValidateCredentials(ctx context.Context) error + type GitLabClient struct + func NewGitLabClient(baseURL, token string) *GitLabClient + func (c *GitLabClient) CreateMergeRequest(ctx context.Context, ...) (*MergeRequest, error) + func (c *GitLabClient) GetCloneURL(repo string) string + func (c *GitLabClient) GetRepository(ctx context.Context, name string) (*Repository, error) + func (c *GitLabClient) ListRepositories(ctx context.Context) ([]Repository, error) + func (c *GitLabClient) ValidateCredentials(ctx context.Context) error + type GiteaClient struct + func NewGiteaClient(baseURL, token string) *GiteaClient + func (c *GiteaClient) CreateMergeRequest(ctx context.Context, ...) (*MergeRequest, error) + func (c *GiteaClient) GetCloneURL(repo string) string + func (c *GiteaClient) GetRepository(ctx context.Context, name string) (*Repository, error) + func (c *GiteaClient) ListRepositories(ctx context.Context) ([]Repository, error) + func (c *GiteaClient) ValidateCredentials(ctx context.Context) error + type MergeRequest struct + CreatedAt time.Time + ID int + Number int + State string + Title string + URL string + type Repository struct + Archived bool + CloneURL string + DefaultBranch string + FullName string + Name string + Private bool