Versions in this module Expand all Collapse all v0 v0.18.0 Oct 7, 2026 Changes in this version + const AffiliationCollaborator + const AffiliationOrganizationMember + const AffiliationOwner type Client + CountPullRequests func(ctx context.Context, owner, repo, state string) (int, error) + ListAuthenticatedUserRepos func(ctx context.Context, opts *ListAuthenticatedUserReposOptions) ([]*gogithub.Repository, error) + ListOrgMemberships func(ctx context.Context, opts *ListOrgMembershipsOptions) ([]*gogithub.OrgMembership, error) + ListRepositoryWorkflowRuns func(ctx context.Context, owner, repo string, opts *ListWorkflowRunsOptions) ([]*gogithub.WorkflowRun, error) type ClientOptions + Transport http.RoundTripper + type ListAuthenticatedUserReposOptions struct + Affiliations []string + Visibility string + type ListOrgMembershipsOptions struct + State string v0.17.0 Aug 2, 2026 Changes in this version type Client + EditIssueComment func(ctx context.Context, owner, repo string, commentID int64, body string) (*gogithub.IssueComment, error) + GetBranchProtection func(ctx context.Context, owner, repo, branch string) (*gogithub.BranchProtection, error) + GetRateLimit func(ctx context.Context) (*gogithub.RateLimit, error) + ListIssueComments func(ctx context.Context, owner, repo string, number int) ([]*gogithub.IssueComment, error) + ListLanguages func(ctx context.Context, owner, repo string) (map[string]int, error) + ListUserReposWithOptions func(ctx context.Context, user string, opts *ListUserReposOptions) ([]*gogithub.Repository, error) + ListWorkflowRuns func(ctx context.Context, owner, repo string, workflowID int64, ...) ([]*gogithub.WorkflowRun, error) + ListWorkflows func(ctx context.Context, owner, repo string) ([]*gogithub.Workflow, error) + type ListUserReposOptions struct + Type string + type ListWorkflowRunsOptions struct + Branch string + Page int + PerPage int + Status string v0.16.1 Aug 2, 2026 v0.16.0 Aug 2, 2026 Changes in this version type Client + ListUserEvents func(ctx context.Context, username string, opts *ListUserEventsOptions) ([]*gogithub.Event, error) + type ListUserEventsOptions struct + PublicOnly bool v0.15.0 Aug 1, 2026 Changes in this version + type Client interface + CreateBlob func(ctx context.Context, owner, repo string, content []byte, encoding string) (string, error) + CreateCommit func(ctx context.Context, owner, repo string, opts *CreateCommitOptions) (*gogithub.Commit, error) + CreateFile func(ctx context.Context, owner, repo, path string, opts *CreateFileOptions) (*gogithub.CreateFileResult, error) + CreateFork func(ctx context.Context, owner, repo string, opts *CreateForkOptions) (*gogithub.Repository, error) + CreateIssue func(ctx context.Context, owner, repo string, input *CreateIssueInput) (*gogithub.Issue, error) + CreateIssueComment func(ctx context.Context, owner, repo string, number int, body string) (*gogithub.IssueComment, error) + CreatePullRequest func(ctx context.Context, owner, repo string, input *CreatePullRequestInput) (*gogithub.PullRequest, error) + CreatePullRequestComment func(ctx context.Context, owner, repo string, number int, ...) (*gogithub.PullRequestComment, error) + CreatePullRequestReview func(ctx context.Context, owner, repo string, number int, input *CreateReviewInput) (*gogithub.PullRequestReview, error) + CreateRef func(ctx context.Context, owner, repo, ref, sha string) (*gogithub.Reference, error) + CreateRelease func(ctx context.Context, owner, repo string, input *CreateReleaseInput) (*gogithub.Release, error) + CreateTag func(ctx context.Context, owner, repo, tag, sha, message string) error + CreateTree func(ctx context.Context, owner, repo, baseTree string, entries []TreeEntry) (string, error) + DeleteFile func(ctx context.Context, owner, repo, path, sha, message string, ...) (*gogithub.DeleteFileResult, error) + DeleteRef func(ctx context.Context, owner, repo, ref string) error + DeleteRelease func(ctx context.Context, owner, repo string, id int64) error + FileExists func(ctx context.Context, owner, repo, path string, opts *gogithub.ContentOptions) (bool, error) + GetAuthenticatedUser func(ctx context.Context) (*gogithub.User, error) + GetBranchSHA func(ctx context.Context, owner, repo, branch string) (string, error) + GetCheckRun func(ctx context.Context, owner, repo string, checkRunID int64) (*gogithub.CheckRun, error) + GetCommit func(ctx context.Context, owner, repo, sha string) (*gogithub.Commit, error) + GetContributorStats func(ctx context.Context, owner, repo string) ([]*gogithub.ContributorStats, error) + GetDefaultBranch func(ctx context.Context, owner, repo string) (string, error) + GetFileContent func(ctx context.Context, owner, repo, path string, opts *gogithub.ContentOptions) ([]byte, error) + GetFileContentString func(ctx context.Context, owner, repo, path string, opts *gogithub.ContentOptions) (string, error) + GetFileContentWithSHA func(ctx context.Context, owner, repo, path string, opts *gogithub.ContentOptions) ([]byte, string, error) + GetIssue func(ctx context.Context, owner, repo string, number int) (*gogithub.Issue, error) + GetLatestRelease func(ctx context.Context, owner, repo string) (*gogithub.Release, error) + GetPullRequest func(ctx context.Context, owner, repo string, number int) (*gogithub.PullRequest, error) + GetPullRequestDiff func(ctx context.Context, owner, repo string, number int) (string, error) + GetPullRequestPatch func(ctx context.Context, owner, repo string, number int) (string, error) + GetRef func(ctx context.Context, owner, repo, ref string) (*gogithub.Reference, error) + GetRelease func(ctx context.Context, owner, repo string, id int64) (*gogithub.Release, error) + GetReleaseByTag func(ctx context.Context, owner, repo, tag string) (*gogithub.Release, error) + GetRepository func(ctx context.Context, owner, repo string) (*gogithub.Repository, error) + GetTagSHA func(ctx context.Context, owner, repo, tag string) (string, error) + GetTree func(ctx context.Context, owner, repo, sha string, recursive bool) ([]*gogithub.TreeNode, error) + GetUser func(ctx context.Context, username string) (*gogithub.User, error) + ListBranches func(ctx context.Context, owner, repo string) ([]*gogithub.Branch, error) + ListCheckRuns func(ctx context.Context, owner, repo, ref string) ([]*gogithub.CheckRun, error) + ListCheckSuites func(ctx context.Context, owner, repo, ref string) ([]*gogithub.CheckSuite, error) + ListCommits func(ctx context.Context, owner, repo string, opts *ListCommitsOptions) ([]*gogithub.Commit, error) + ListDirectory func(ctx context.Context, owner, repo, path string, opts *gogithub.ContentOptions) ([]*gogithub.FileContent, error) + ListIssues func(ctx context.Context, owner, repo string, opts *ListIssuesOptions) ([]*gogithub.Issue, error) + ListOrgRepos func(ctx context.Context, org string) ([]*gogithub.Repository, error) + ListPullRequestComments func(ctx context.Context, owner, repo string, number int) ([]*gogithub.PullRequestComment, error) + ListPullRequestFiles func(ctx context.Context, owner, repo string, number int) ([]*gogithub.CommitFile, error) + ListPullRequestReviews func(ctx context.Context, owner, repo string, number int) ([]*gogithub.PullRequestReview, error) + ListPullRequests func(ctx context.Context, owner, repo string, opts *ListPullRequestsOptions) ([]*gogithub.PullRequest, error) + ListReleaseAssets func(ctx context.Context, owner, repo string, releaseID int64) ([]*gogithub.ReleaseAsset, error) + ListReleases func(ctx context.Context, owner, repo string) ([]*gogithub.Release, error) + ListTags func(ctx context.Context, owner, repo string) ([]*gogithub.Tag, error) + ListUserRepos func(ctx context.Context, user string) ([]*gogithub.Repository, error) + MergePullRequest func(ctx context.Context, owner, repo string, number int, ...) (*gogithub.MergeResult, error) + Raw func() any + RequestReviewers func(ctx context.Context, owner, repo string, number int, ...) (*gogithub.PullRequest, error) + SearchCode func(ctx context.Context, query string, opts *SearchOptions) (*gogithub.CodeSearchResult, error) + SearchIssues func(ctx context.Context, query string, opts *SearchOptions) (*gogithub.IssueSearchResult, error) + UpdateFile func(ctx context.Context, owner, repo, path string, opts *UpdateFileOptions) (*gogithub.CreateFileResult, error) + UpdateIssue func(ctx context.Context, owner, repo string, number int, input *UpdateIssueInput) (*gogithub.Issue, error) + UpdatePullRequest func(ctx context.Context, owner, repo string, number int, ...) (*gogithub.PullRequest, error) + UpdateRef func(ctx context.Context, owner, repo, ref, sha string, force bool) (*gogithub.Reference, error) + UpdateRelease func(ctx context.Context, owner, repo string, id int64, input *UpdateReleaseInput) (*gogithub.Release, error) + func MustNewClient(ctx context.Context, token string) Client + func NewClient(ctx context.Context, token string) (Client, error) + func NewClientFromRaw(gh *github.Client) Client + func NewClientWithHTTP(httpClient *http.Client) (Client, error) + func NewClientWithOptions(ctx context.Context, opts ClientOptions) (Client, error) + type ClientOptions struct + BaseURL string + Token string + UploadURL string + type CommitAuthor struct + Date *time.Time + Email string + Name string + type CreateCommitOptions struct + Author *CommitAuthor + Message string + Parents []string + Tree string + type CreateFileOptions struct + Author *CommitAuthor + Branch string + Content []byte + Message string + type CreateForkOptions struct + DefaultBranch bool + Name string + Organization string + type CreateIssueInput struct + Assignees []string + Body string + Labels []string + Milestone *int + Title string + type CreatePRCommentInput struct + Body string + CommitID string + Line int + Path string + Side string + type CreatePullRequestInput struct + Base string + Body string + Draft bool + Head string + MaintainerCanModify bool + Title string + type CreateReleaseInput struct + Body string + Draft bool + GenerateReleaseNotes bool + Name string + Prerelease bool + TagName string + TargetCommitish string + type CreateReviewInput struct + Body string + Event string + type DeleteFileOptions struct + Author *CommitAuthor + Branch string + type ListCommitsOptions struct + Author string + Path string + SHA string + Since *time.Time + Until *time.Time + type ListIssuesOptions struct + Direction string + Labels []string + Page int + PerPage int + Since *time.Time + Sort string + State string + type ListPullRequestsOptions struct + Base string + Direction string + Head string + Sort string + State string + type MergePullRequestOptions struct + CommitMessage string + CommitTitle string + MergeMethod string + SHA string + type SearchOptions struct + Order string + Page int + PerPage int + Sort string + type TreeEntry struct + Content string + Mode string + Path string + SHA string + Type string + type UpdateFileOptions struct + Author *CommitAuthor + Branch string + Content []byte + Message string + SHA string + type UpdateIssueInput struct + Assignees []string + Body *string + Labels []string + Milestone *int + State *string + Title *string + type UpdatePullRequestInput struct + Base *string + Body *string + MaintainerCanModify *bool + State *string + Title *string + type UpdateReleaseInput struct + Body *string + Draft *bool + Name *string + Prerelease *bool + TagName *string + TargetCommitish *string