Versions in this module Expand all Collapse all v0 v0.0.4 Jan 15, 2026 v0.0.3 Jan 15, 2026 v0.0.2 Jan 14, 2026 Changes in this version type PullRequest + Labels []string v0.0.1 Jan 11, 2026 Changes in this version + type Client struct + func NewClient(token string) *Client + func NewClientWithoutAuth() *Client + func (c *Client) CreateRelease(ctx context.Context, owner, repo string, req *CreateReleaseRequest) (*Release, error) + func (c *Client) GetLatestRelease(ctx context.Context, owner, repo string) (*Release, error) + func (c *Client) GetPullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + func (c *Client) GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*Release, error) + func (c *Client) GetRepository(ctx context.Context, owner, repo string) (*Repository, error) + func (c *Client) ListPullRequestsByCommit(ctx context.Context, owner, repo, sha string) ([]*PullRequest, error) + type CreateReleaseRequest struct + Body string + Draft bool + Name string + Prerelease bool + TagName string + TargetCommitish string + type GitHubClient interface + CreateRelease func(ctx context.Context, owner, repo string, release *CreateReleaseRequest) (*Release, error) + GetLatestRelease func(ctx context.Context, owner, repo string) (*Release, error) + GetPullRequest func(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + GetReleaseByTag func(ctx context.Context, owner, repo, tag string) (*Release, error) + GetRepository func(ctx context.Context, owner, repo string) (*Repository, error) + ListPullRequestsByCommit func(ctx context.Context, owner, repo, sha string) ([]*PullRequest, error) + type MockClient struct + CreateReleaseError error + GetLatestReleaseError error + GetPullRequestError error + GetReleaseByTagError error + GetRepositoryError error + ListPullRequestsByCommitError error + func NewMockClient() *MockClient + func (m *MockClient) AddPullRequest(owner, repo string, pr *PullRequest) + func (m *MockClient) AddPullRequestForCommit(owner, repo, sha string, pr *PullRequest) + func (m *MockClient) AddRelease(owner, repo string, release *Release) + func (m *MockClient) CreateRelease(ctx context.Context, owner, repo string, req *CreateReleaseRequest) (*Release, error) + func (m *MockClient) GetAllReleases(owner, repo string) []*Release + func (m *MockClient) GetLatestRelease(ctx context.Context, owner, repo string) (*Release, error) + func (m *MockClient) GetPullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + func (m *MockClient) GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*Release, error) + func (m *MockClient) GetRepository(ctx context.Context, owner, repo string) (*Repository, error) + func (m *MockClient) ListPullRequestsByCommit(ctx context.Context, owner, repo, sha string) ([]*PullRequest, error) + func (m *MockClient) Reset() + func (m *MockClient) SetupRepository(owner, repo string) + type PullRequest struct + Author string + HTMLURL string + MergeCommitSHA string + Merged bool + Number int + State string + Title string + type Release struct + Body string + CreatedAt time.Time + Draft bool + ID int64 + Name string + Prerelease bool + PublishedAt time.Time + TagName string + type Repository struct + DefaultBranch string + FullName string + Name string + Owner string + URL string