Versions in this module Expand all Collapse all v0 v0.3.0 Jun 24, 2026 Changes in this version + const DefaultBaseURL + const DefaultOAuthBaseURL + type ArchiveStatus struct + Archived bool + type AuthStyle int + const AuthStyleAccessToken + const AuthStyleBearer + const AuthStylePrivateToken + type Branch struct + Commit *BranchCommitDetail + DefaultBranch bool + Name string + Protected bool + type BranchCommitDetail struct + Commit ... + SHA string + URL string + type BranchProtection struct + AllowDeletions bool + AllowForcePushes bool + Enabled bool + RequiredApprovingReviews int + RequiredStatusChecks bool + type BranchProtectionRule struct + AllowDeletions bool + AllowForcePushes bool + ID int64 + Name string + RepositoryID int64 + RequiredApprovingReviews int + RequiredStatusChecks bool + type Client struct + func NewClient(token string) *Client + func NewClientFromOAuthToken(token *OAuthToken) *Client + func NewClientWithBaseURL(baseURL, token string) *Client + func (c *Client) AddIssueLabels(ctx context.Context, owner, repo string, number int, labels []string) error + func (c *Client) AddPullRequestLabels(ctx context.Context, owner, repo string, number int, labels []string) error + func (c *Client) ArchiveRepository(ctx context.Context, owner, repo string) error + func (c *Client) AssignPullRequestReviewers(ctx context.Context, owner, repo string, number int, assignees string) error + func (c *Client) AssignPullRequestTesters(ctx context.Context, owner, repo string, number int, testers string) error + func (c *Client) CloseIssue(ctx context.Context, owner, repo string, number int) (*Issue, error) + func (c *Client) ClosePullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + func (c *Client) CompareCommits(ctx context.Context, owner, repo, base, head string) (*CommitComparison, error) + func (c *Client) CreateBranch(ctx context.Context, owner, repo string, opts CreateBranchOptions) (*Branch, error) + func (c *Client) CreateBranchProtection(ctx context.Context, owner, repo string, opts CreateBranchProtectionOptions) (*BranchProtectionRule, error) + func (c *Client) CreateFile(ctx context.Context, owner, repo, path string, opts CreateFileOptions) (*FileResult, error) + func (c *Client) CreateIssue(ctx context.Context, owner, repo string, opts CreateIssueOptions) (*Issue, error) + func (c *Client) CreateIssueComment(ctx context.Context, owner, repo string, number int, body string) (*IssueComment, error) + func (c *Client) CreateIssueLabel(ctx context.Context, owner, repo string, name, color string) (*Label, error) + func (c *Client) CreateMilestone(ctx context.Context, owner, repo string, title, description string) (*Milestone, error) + func (c *Client) CreateMilestoneWithOptions(ctx context.Context, owner, repo string, opts CreateMilestoneOptions) (*Milestone, error) + func (c *Client) CreateOrgRepository(ctx context.Context, org string, opts CreateOrgRepoOptions) (*Repository, error) + func (c *Client) CreatePullRequest(ctx context.Context, owner, repo string, opts CreatePullRequestOptions) (*PullRequest, error) + func (c *Client) CreatePullRequestComment(ctx context.Context, owner, repo string, number int, body, path string, ...) (*PullRequestComment, error) + func (c *Client) CreatePullRequestInlineComment(ctx context.Context, owner, repo string, number int, ...) (*PullRequestComment, error) + func (c *Client) CreatePullRequestReview(ctx context.Context, owner, repo string, number int, body, event string) (*PullRequestReview, error) + func (c *Client) CreateRelease(ctx context.Context, owner, repo string, opts CreateReleaseOptions) (*Release, error) + func (c *Client) CreateRepository(ctx context.Context, opts CreateRepositoryOptions) (*Repository, error) + func (c *Client) CreateSSHKey(ctx context.Context, opts CreateSSHKeyOptions) (*SSHKey, error) + func (c *Client) CreateWebhook(ctx context.Context, owner, repo string, opts CreateWebhookOptions) (*Webhook, error) + func (c *Client) DeleteBranch(ctx context.Context, owner, repo, branch string) error + func (c *Client) DeleteBranchProtection(ctx context.Context, owner, repo, name string) error + func (c *Client) DeleteFile(ctx context.Context, owner, repo, path string, opts DeleteFileOptions) (*FileResult, error) + func (c *Client) DeleteIssueComment(ctx context.Context, owner, repo string, commentID int64) error + func (c *Client) DeleteIssueLabel(ctx context.Context, owner, repo string, name string) error + func (c *Client) DeleteMilestone(ctx context.Context, owner, repo string, number int) error + func (c *Client) DeletePullRequestComment(ctx context.Context, owner, repo string, commentID string) error + func (c *Client) DeleteRelease(ctx context.Context, owner, repo string, tagName string) error + func (c *Client) DeleteRepository(ctx context.Context, owner, repo string) error + func (c *Client) DeleteSSHKey(ctx context.Context, id int64) error + func (c *Client) DeleteTag(ctx context.Context, owner, repo, tagName string) error + func (c *Client) DeleteWebhook(ctx context.Context, owner, repo string, hookID int64) error + func (c *Client) ExitOrganization(ctx context.Context, org string) error + func (c *Client) ForkRepository(ctx context.Context, owner, repo string, opts *CreateRepositoryOptions) (*Repository, error) + func (c *Client) GetArchiveStatus(ctx context.Context, owner, repo string) (*ArchiveStatus, error) + func (c *Client) GetBlob(ctx context.Context, owner, repo, sha string) (*GitBlob, error) + func (c *Client) GetBranch(ctx context.Context, owner, repo, branch string) (*Branch, error) + func (c *Client) GetCommit(ctx context.Context, owner, repo, sha string) (*Commit, error) + func (c *Client) GetContributorStatistics(ctx context.Context, owner, repo string) ([]*ContributorStatistic, error) + func (c *Client) GetCurrentUser(ctx context.Context) (*User, error) + func (c *Client) GetCustomizedRoles(ctx context.Context, owner, repo string) ([]*CustomizedRole, error) + func (c *Client) GetDownloadStatistics(ctx context.Context, owner, repo string) ([]*DownloadStatistic, error) + func (c *Client) GetEnterpriseIssue(ctx context.Context, enterprise string, number int) (*Issue, error) + func (c *Client) GetEnterpriseIssueLinkedPRs(ctx context.Context, enterprise string, number int) ([]*PullRequest, error) + func (c *Client) GetEnterpriseMember(ctx context.Context, enterprise, username string) (*EnterpriseMember, error) + func (c *Client) GetIssue(ctx context.Context, owner, repo string, number int) (*Issue, error) + func (c *Client) GetIssueComment(ctx context.Context, owner, repo string, commentID int64) (*IssueComment, error) + func (c *Client) GetIssueLinkedPRs(ctx context.Context, owner, repo string, number int) ([]*PullRequest, error) + func (c *Client) GetIssueOperateLogs(ctx context.Context, owner, repo string, number int) ([]*IssueOperateLog, error) + func (c *Client) GetLanguages(ctx context.Context, owner, repo string) (Language, error) + func (c *Client) GetMilestone(ctx context.Context, owner, repo string, number int) (*Milestone, error) + func (c *Client) GetNamespace(ctx context.Context, path string) (*Namespace, error) + func (c *Client) GetOrgInfo(ctx context.Context, org string) (*Organization, error) + func (c *Client) GetOrgIssueExtendSettings(ctx context.Context, org string) ([]*IssueExtendSetting, error) + func (c *Client) GetOrgMemberDetail(ctx context.Context, org, username string) (*OrgMemberDetail, error) + func (c *Client) GetOrganization(ctx context.Context, org string) (*Organization, error) + func (c *Client) GetPRSettings(ctx context.Context, owner, repo string) (*PRSettings, error) + func (c *Client) GetPullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + func (c *Client) GetPullRequestComment(ctx context.Context, owner, repo string, commentID int64) (*PullRequestComment, error) + func (c *Client) GetPullRequestLinkedIssues(ctx context.Context, owner, repo string, number int, opts ListOptions) ([]*Issue, error) + func (c *Client) GetPullRequestOperateLogs(ctx context.Context, owner, repo string, number int) ([]*PROperateLog, error) + func (c *Client) GetPushConfig(ctx context.Context, owner, repo string) (*PushConfig, error) + func (c *Client) GetRateLimit(ctx context.Context) (*RateLimit, error) + func (c *Client) GetRawFile(ctx context.Context, owner, repo, path, ref string) ([]byte, error) + func (c *Client) GetRepoSettings(ctx context.Context, owner, repo string) (*RepoSettings, error) + func (c *Client) GetRepository(ctx context.Context, owner, repo string) (*Repository, error) + func (c *Client) GetRepositoryContent(ctx context.Context, owner, repo, path, ref string) (*RepositoryContent, error) + func (c *Client) GetSSHKey(ctx context.Context, id int64) (*SSHKey, error) + func (c *Client) GetTree(ctx context.Context, owner, repo, sha string, recursive bool) (*GitTree, error) + func (c *Client) GetUser(ctx context.Context, username string) (*User, error) + func (c *Client) GetUserEvents(ctx context.Context, username, year, next string) (*UserEventsResponse, error) + func (c *Client) GetUserMembership(ctx context.Context, org string) (*UserMembership, error) + func (c *Client) GetWebhook(ctx context.Context, owner, repo string, hookID int64) (*Webhook, error) + func (c *Client) HandlePullRequestReview(ctx context.Context, owner, repo string, number int, force bool) error + func (c *Client) HandlePullRequestTest(ctx context.Context, owner, repo string, number int, force bool) error + func (c *Client) InviteOrgMember(ctx context.Context, org, username string, opts InviteMemberOptions) (*User, error) + func (c *Client) IsPullRequestMerged(ctx context.Context, owner, repo string, number int) (bool, error) + func (c *Client) IsRepositoryStarred(ctx context.Context, owner, repo string) (bool, error) + func (c *Client) ListBranchProtections(ctx context.Context, owner, repo string) ([]*BranchProtectionRule, error) + func (c *Client) ListBranches(ctx context.Context, owner, repo string) ([]*Branch, error) + func (c *Client) ListCommits(ctx context.Context, owner, repo string, opts ListCommitsOptions) ([]*Commit, error) + func (c *Client) ListContributors(ctx context.Context, owner, repo string) ([]*Contributor, error) + func (c *Client) ListEmails(ctx context.Context) ([]*Email, error) + func (c *Client) ListEnterpriseIssueComments(ctx context.Context, enterprise string, number int, opts ListOptions) ([]*IssueComment, error) + func (c *Client) ListEnterpriseIssueLabels(ctx context.Context, enterprise string, issueID int64) ([]*Label, error) + func (c *Client) ListEnterpriseIssues(ctx context.Context, enterprise string, opts ListUserIssuesOptions) ([]*Issue, error) + func (c *Client) ListEnterpriseLabels(ctx context.Context, enterprise string) ([]*EnterpriseLabel, error) + func (c *Client) ListEnterpriseMembers(ctx context.Context, enterprise, role string, opts ListOptions) ([]*EnterpriseMember, error) + func (c *Client) ListEnterprisePullRequests(ctx context.Context, enterprise string, opts ListEnterprisePRsOptions) ([]*PullRequest, error) + func (c *Client) ListFiles(ctx context.Context, owner, repo string) ([]*FileListEntry, error) + func (c *Client) ListForks(ctx context.Context, owner, repo string, opts ListOptions) ([]*Repository, error) + func (c *Client) ListIssueComments(ctx context.Context, owner, repo string, number int) ([]*IssueComment, error) + func (c *Client) ListIssueLabels(ctx context.Context, owner, repo string) ([]*Label, error) + func (c *Client) ListIssues(ctx context.Context, owner, repo string, opts ListIssuesOptions) ([]*Issue, error) + func (c *Client) ListMilestones(ctx context.Context, owner, repo string) ([]*Milestone, error) + func (c *Client) ListMilestonesWithOptions(ctx context.Context, owner, repo string, opts ListMilestonesOptions) ([]*Milestone, error) + func (c *Client) ListNotifications(ctx context.Context) ([]*Notification, error) + func (c *Client) ListOrgFollowers(ctx context.Context, org string, opts ListOptions) ([]*OrgFollowers, error) + func (c *Client) ListOrgIssues(ctx context.Context, org string, opts ListUserIssuesOptions) ([]*Issue, error) + func (c *Client) ListOrgMembers(ctx context.Context, org, role string, opts ListOptions) ([]*OrgMember, error) + func (c *Client) ListOrgPullRequests(ctx context.Context, org string, opts ListEnterprisePRsOptions) ([]*PullRequest, error) + func (c *Client) ListOrgRepositories(ctx context.Context, org, repoType string, opts ListOptions) ([]*Repository, error) + func (c *Client) ListOrganizationMembers(ctx context.Context, org string) ([]*Member, error) + func (c *Client) ListOrganizations(ctx context.Context) ([]*Organization, error) + func (c *Client) ListOrganizationsWithOptions(ctx context.Context, admin bool, opts ListOptions) ([]*Organization, error) + func (c *Client) ListPullRequestComments(ctx context.Context, owner, repo string, number int) ([]*PullRequestComment, error) + func (c *Client) ListPullRequestCommits(ctx context.Context, owner, repo string, number int) ([]*Commit, error) + func (c *Client) ListPullRequestFiles(ctx context.Context, owner, repo string, number int) ([]*PullRequestFile, error) + func (c *Client) ListPullRequestLabels(ctx context.Context, owner, repo string, number int) ([]*Label, error) + func (c *Client) ListPullRequestReviews(ctx context.Context, owner, repo string, number int) ([]*PullRequestReview, error) + func (c *Client) ListPullRequests(ctx context.Context, owner, repo string, opts ListPullRequestsOptions) ([]*PullRequest, error) + func (c *Client) ListReleases(ctx context.Context, owner, repo string) ([]*Release, error) + func (c *Client) ListRepoAllIssueComments(ctx context.Context, owner, repo string, opts ListOptions) ([]*IssueComment, error) + func (c *Client) ListRepoEvents(ctx context.Context, owner, repo string, opts ListOptions) ([]*RepoEvent, error) + func (c *Client) ListRepositories(ctx context.Context, opts ListRepositoriesOptions) ([]*Repository, error) + func (c *Client) ListRepositoryContents(ctx context.Context, owner, repo, path, ref string) ([]*RepositoryContent, error) + func (c *Client) ListSSHKeys(ctx context.Context, opts ListOptions) ([]*SSHKey, error) + func (c *Client) ListStargazers(ctx context.Context, owner, repo string, opts ListOptions) ([]*User, error) + func (c *Client) ListStarredRepositories(ctx context.Context, opts ListStarredReposOptions) ([]*Repository, error) + func (c *Client) ListTags(ctx context.Context, owner, repo string) ([]*Tag, error) + func (c *Client) ListUserIssues(ctx context.Context, opts ListUserIssuesOptions) ([]*Issue, error) + func (c *Client) ListUserOrganizations(ctx context.Context, username string, opts ListOptions) ([]*Organization, error) + func (c *Client) ListWatchers(ctx context.Context, owner, repo string, opts ListOptions) ([]*User, error) + func (c *Client) ListWebhooks(ctx context.Context, owner, repo string) ([]*Webhook, error) + func (c *Client) MergePullRequest(ctx context.Context, owner, repo string, number int, ...) error + func (c *Client) ParseIssueEvent(payload []byte) (*IssueWebhookEvent, error) + func (c *Client) ParseNoteEvent(payload []byte) (*NoteWebhookEvent, error) + func (c *Client) ParsePullRequestEvent(payload []byte) (*PullRequestWebhookEvent, error) + func (c *Client) ParsePushEvent(payload []byte) (*PushEvent, error) + func (c *Client) ParseTagPushEvent(payload []byte) (*TagPushEvent, error) + func (c *Client) RemoveAllIssueLabels(ctx context.Context, owner, repo string, number int) error + func (c *Client) RemoveIssueLabel(ctx context.Context, owner, repo string, number int, name string) error + func (c *Client) RemoveOrgMember(ctx context.Context, org, username string) error + func (c *Client) RemovePullRequestLabel(ctx context.Context, owner, repo string, number int, name string) error + func (c *Client) ReopenIssue(ctx context.Context, owner, repo string, number int) (*Issue, error) + func (c *Client) ReopenPullRequest(ctx context.Context, owner, repo string, number int) (*PullRequest, error) + func (c *Client) ReplaceIssueLabels(ctx context.Context, owner, repo string, number int, labels []string) error + func (c *Client) ReplacePullRequestLabels(ctx context.Context, owner, repo string, number int, labels []string) error + func (c *Client) ResetPullRequestReviewStatus(ctx context.Context, owner, repo string, number int, resetAll bool) error + func (c *Client) ResetPullRequestTestStatus(ctx context.Context, owner, repo string, number int, resetAll bool) error + func (c *Client) SearchIssues(ctx context.Context, opts SearchIssuesOptions) ([]*SearchIssueResult, error) + func (c *Client) SearchRepositories(ctx context.Context, opts SearchRepositoriesOptions) ([]*SearchRepositoryResult, error) + func (c *Client) SearchUsers(ctx context.Context, opts SearchUsersOptions) ([]*SearchUserResult, error) + func (c *Client) SetAuthStyle(style AuthStyle) + func (c *Client) SetHTTPClient(client *http.Client) + func (c *Client) SetModuleSetting(ctx context.Context, owner, repo string, setting ModuleSetting) error + func (c *Client) StarRepository(ctx context.Context, owner, repo string) error + func (c *Client) TestWebhook(ctx context.Context, owner, repo string, hookID int64) error + func (c *Client) TransferRepository(ctx context.Context, owner, repo string, opts TransferRepoOptions) error + func (c *Client) TransferToOrg(ctx context.Context, org, repo, newOwner string) error + func (c *Client) UnassignPullRequestReviewers(ctx context.Context, owner, repo string, number int, assignees string) error + func (c *Client) UnstarRepository(ctx context.Context, owner, repo string) error + func (c *Client) UpdateBranchProtection(ctx context.Context, owner, repo, wildcard string, ...) error + func (c *Client) UpdateEnterpriseMember(ctx context.Context, enterprise, username string, ...) (*EnterpriseMember, error) + func (c *Client) UpdateFile(ctx context.Context, owner, repo, path string, opts UpdateFileOptions) (*FileResult, error) + func (c *Client) UpdateIssue(ctx context.Context, owner, repo string, number int, opts UpdateIssueOptions) (*Issue, error) + func (c *Client) UpdateIssueComment(ctx context.Context, owner, repo string, commentID int64, body string) (*IssueComment, error) + func (c *Client) UpdateIssueLabel(ctx context.Context, owner, repo, originalName string, opts UpdateLabelOptions) (*Label, error) + func (c *Client) UpdateMilestone(ctx context.Context, owner, repo string, number int, ...) (*Milestone, error) + func (c *Client) UpdateOrgRepoStatus(ctx context.Context, org, repo, status string) error + func (c *Client) UpdateOrganization(ctx context.Context, org string, opts UpdateOrgOptions) (*Organization, error) + func (c *Client) UpdatePRSettings(ctx context.Context, owner, repo string, settings *PRSettings) error + func (c *Client) UpdatePullRequest(ctx context.Context, owner, repo string, number int, ...) (*PullRequest, error) + func (c *Client) UpdatePullRequestComment(ctx context.Context, owner, repo string, commentID string, body string) (*PullRequestComment, error) + func (c *Client) UpdatePushConfig(ctx context.Context, owner, repo string, config *PushConfig) error + func (c *Client) UpdateRepoMember(ctx context.Context, owner, repo, username string, opts UpdateMemberOptions) error + func (c *Client) UpdateRepoSettings(ctx context.Context, owner, repo string, opts *RepoSettings) (*RepoSettings, error) + func (c *Client) UpdateRepository(ctx context.Context, owner, repo string, opts UpdateRepositoryOptions) (*Repository, error) + func (c *Client) UpdateReviewerConfig(ctx context.Context, owner, repo string, config ReviewerConfig) error + func (c *Client) UpdateWebhook(ctx context.Context, owner, repo string, hookID int64, ...) (*Webhook, error) + func (c *Client) UploadFile(ctx context.Context, owner, repo string, filePath string) (*FileUploadResult, error) + func (c *Client) UploadImage(ctx context.Context, owner, repo string, filePath string) (*FileUploadResult, error) + type Commit struct + Author *User + Committer *User + CreatedAt time.Time + Message string + SHA string + URL string + type CommitAuthor struct + Date string + Email string + Name string + type CommitComparison struct + AheadBy int + BehindBy int + Commits []*Commit + Files []*PullRequestFile + TotalCommits int + type Contributor struct + AvatarURL string + Contributions int + ID string + Login string + type ContributorStatistic struct + Author *User + Total int + Weeks []... + type CreateBranchOptions struct + BranchName string + Ref string + Refs string + type CreateBranchProtectionOptions struct + AllowDeletions bool + AllowForcePushes bool + Name string + RequiredApprovingReviews int + RequiredStatusChecks bool + type CreateFileOptions struct + Branch string + Content string + Message string + type CreateIssueOptions struct + Assignee string + Assignees []string + Body string + Labels []string + Milestone int64 + Title string + func (o CreateIssueOptions) MarshalJSON() ([]byte, error) + type CreateMilestoneOptions struct + Description string + DueOn string + Title string + type CreateOrgRepoOptions struct + AutoInit *bool + CanComment *bool + DefaultBranch string + Description string + GitignoreTemplate string + HasIssues *bool + HasWiki *bool + Homepage string + LicenseTemplate string + Name string + Path string + Private *bool + Public *int + type CreatePullRequestInlineCommentOptions struct + Body string + CommitID string + Line int + Path string + Side string + type CreatePullRequestOptions struct + Base string + Body string + Draft bool + Head string + Title string + type CreateReleaseOptions struct + Body string + Draft bool + Prerelease bool + TagName string + Target string + Title string + type CreateRepositoryOptions struct + AutoInit *bool + Description string + Name string + Private *bool + type CreateSSHKeyOptions struct + Key string + Title string + type CreateWebhookOptions struct + Active *bool + Events []string + Secret string + URL string + type CustomizedRole struct + Description string + ID int64 + Name string + type DeleteFileOptions struct + Branch string + Message string + SHA string + type DownloadStatistic struct + Count int + Name string + type Email struct + Email string + State string + type EnterpriseLabel struct + Color string + CreatedAt string + ID int64 + Name string + UpdatedAt string + type EnterpriseMember struct + Active bool + Enterprise ... + Role string + URL string + User *User + type Error struct + Errors []struct{ ... } + Message string + func (e *Error) Error() string + type FileListEntry struct + Name string + Path string + Type string + type FileResult struct + Commit *Commit + Content *RepositoryContent + type FileUploadResult struct + FilePath string + type FlexInt int + func (fi *FlexInt) UnmarshalJSON(data []byte) error + type FlexString string + func (fs *FlexString) UnmarshalJSON(data []byte) error + type GitBlob struct + Content string + Encoding string + SHA string + Size int64 + URL string + type GitTree struct + SHA string + Tree []*GitTreeEntry + Truncated bool + URL string + type GitTreeEntry struct + Mode string + Path string + SHA string + Size int64 + Type string + URL string + type InviteMemberOptions struct + Permission string + RoleID string + type Issue struct + Assignees []*User + Author *User + Body string + ClosedAt *time.Time + CreatedAt time.Time + HTMLURL string + ID int64 + Labels []*Label + Milestone *Milestone + Number FlexInt + State IssueState + Title string + UpdatedAt time.Time + User *User + type IssueComment struct + Author *User + Body string + CreatedAt time.Time + ID int64 + UpdatedAt time.Time + User *User + type IssueExtendSetting struct + Status []... + TypeDesc string + TypeID int + TypeName string + type IssueOperateLog struct + Action string + CreatedAt string + ID int64 + User *User + type IssueState string + const IssueStateClosed + const IssueStateOpen + type IssueWebhookEvent struct + Action string + Issue *Issue + Repository *Repository + Sender *User + type Label struct + Color string + ID int64 + Name string + type Language map[string]int + type ListBranchProtectionOptions struct + type ListCommitsOptions struct + Branch string + Since string + Until string + type ListEnterprisePRsOptions struct + Direction string + IssueNumber int + Sort string + State string + type ListIssuesOptions struct + Assignee string + Creator string + Direction string + Labels string + Milestone string + Since string + Sort string + State IssueState + type ListMilestonesOptions struct + Direction string + Sort string + State string + type ListOptions struct + Page int + PerPage int + type ListPullRequestsOptions struct + Base string + Direction string + Head string + Sort string + State PullRequestState + type ListRepositoriesOptions struct + Owner string + Sort string + Type string + type ListStarredReposOptions struct + Direction string + Sort string + type ListUserIssuesOptions struct + Direction string + Filter string + Labels string + Since string + Sort string + State string + type Member struct + ID string + Login string + Role string + type MergePullRequestOptions struct + CommitMessage string + Squash bool + type Milestone struct + CreatedAt time.Time + Description string + DueDate *time.Time + ID int64 + State string + Title string + UpdatedAt time.Time + type ModuleSetting struct + Issues bool + Releases bool + Wiki bool + type Namespace struct + HTMLURL string + ID int64 + Name string + Path string + Type string + type NoteWebhookEvent struct + Author *User + Body string + NoteID int64 + NoteType string + Repository *Repository + Sender *User + type Notification struct + CreatedAt time.Time + ID string + Reason string + Subject struct{ ... } + Unread bool + type NullableTime struct + Valid bool + func (nt *NullableTime) UnmarshalJSON(data []byte) error + type OAuthClient struct + func NewOAuthClient(clientID, clientSecret, redirectURI string) *OAuthClient + func (o *OAuthClient) AuthorizeURL(scope, state string) string + func (o *OAuthClient) ExchangeToken(ctx context.Context, code string) (*OAuthToken, error) + func (o *OAuthClient) RefreshToken(ctx context.Context, refreshToken string) (*OAuthToken, error) + func (o *OAuthClient) SetBaseURL(baseURL string) + type OAuthToken struct + AccessToken string + CreatedAt time.Time + ExpiresIn int + RefreshToken string + Scope string + type OrgFollowers struct + AvatarURL string + ID int64 + Login string + Name string + WatchAt string + type OrgMember struct + AvatarURL string + HTMLURL string + ID string + Login string + MemberRole string + Name string + Type string + type OrgMemberDetail struct + AvatarURL string + ID int64 + Name string + Path string + URL string + User *User + type Organization struct + AvatarURL string + Description string + ID int64 + Login string + Name string + type PROperateLog struct + Action string + CreatedAt string + ID int64 + User *User + type PRSettings struct + AutoCloseIssues bool + DefaultMergeMethod string + type PullRequest struct + Author *User + Base *PullRequestBranch + Body string + ClosedAt NullableTime + CreatedAt time.Time + Description string + DiffURL string + Draft bool + HTMLURL string + Head *PullRequestBranch + ID int64 + IID int + Mergeable *bool + Merged bool + MergedAt NullableTime + Number int + PatchURL string + State PullRequestState + Title string + UpdatedAt time.Time + User *User + type PullRequestBranch struct + Ref string + Repo ... + SHA string + type PullRequestComment struct + Author *User + Body string + CommitID string + CreatedAt time.Time + ID FlexString + Line int + Path string + Position int + Side string + UpdatedAt time.Time + User *User + type PullRequestFile struct + Additions int + Changes int + Deletions int + Filename string + Patch interface{} + PreviousFilename string + Status string + type PullRequestReview struct + Author *User + Body string + CommitID string + CreatedAt time.Time + ID int64 + State string + UpdatedAt time.Time + User *User + type PullRequestState string + const PullRequestStateClosed + const PullRequestStateMerged + const PullRequestStateOpen + const PullRequestStateOpened + type PullRequestWebhookEvent struct + Action string + Number int + PullRequest *PullRequest + Repository *Repository + Sender *User + type PushConfig struct + CommitMessageRegex string + MaxFileSize int + ProhibitedFiles []string + type PushEvent struct + After string + Before string + Commits []*Commit + Ref string + Repository *Repository + Sender *User + type RateLimit struct + Limit int + Remaining int + Reset time.Time + type Release struct + Body string + CreatedAt time.Time + Draft bool + HTMLURL string + ID int64 + Name string + Prerelease bool + PublishedAt time.Time + TagName string + TargetCommitish string + type RepoEvent struct + CreatedAt string + ID int64 + PushData ... + Type string + type RepoSettings struct + CanComment bool + DefaultBranch string + Description string + HasIssues bool + HasWiki bool + ID int64 + Name string + Private bool + type Repository struct + CloneURL string + CreatedAt time.Time + DefaultBranch string + Description string + Fork bool + ForksCount int + FullName string + HTMLURL string + ID int64 + Language string + Name string + Namespace ... + OpenIssuesCount int + Owner *User + Path string + Private bool + Public bool + PushedAt *time.Time + SSHURL string + StarsCount int + UpdatedAt time.Time + WatchersCount int + type RepositoryContent struct + Content string + Encoding string + Links struct{ ... } + Name string + Path string + SHA string + Size int64 + Type string + type ReviewerConfig struct + MinApprovingReviews int + RequireCodeOwner bool + type SSHKey struct + CreatedAt time.Time + ID int64 + Key string + Title string + URL string + type SearchIssueResult struct + Body string + Comments int + CreatedAt time.Time + HTMLURL string + ID int64 + Labels []*Label + Number string + Priority int + Repository ... + State string + Title string + UpdatedAt time.Time + type SearchIssuesOptions struct + Order string + Query string + Repo string + Sort string + State string + type SearchOptions struct + Order string + Query string + type SearchRepositoriesOptions struct + Fork string + Language string + Order string + Owner string + Query string + Sort string + type SearchRepositoryResult struct + CreatedAt time.Time + DefaultBranch string + Description string + Fork bool + ForksCount int + FullName string + HTTPURLToRepo string + HumanName string + ID int64 + Name string + Namespace ... + OpenIssuesCount int + Owner *User + Path string + Private bool + Public bool + PushedAt string + SSHURLToRepo string + StargazersCount int + UpdatedAt time.Time + WatchersCount int + WebURL string + type SearchResult struct + Items []*Repository + TotalCount int + type SearchUserResult struct + AvatarURL string + CreatedAt time.Time + HTMLURL string + ID string + Login string + Name string + type SearchUsersOptions struct + Order string + Query string + Sort string + type Star struct + StarredAt time.Time + type Tag struct + Commit struct{ ... } + Name string + type TagPushEvent struct + After string + Before string + Ref string + Repository *Repository + Sender *User + type Timestamp struct + func (t *Timestamp) UnmarshalJSON(data []byte) error + type TransferRepoOptions struct + NewOwner string + type UpdateBranchProtectionOptions struct + Merger string + Pusher string + type UpdateEnterpriseMemberOptions struct + Role string + type UpdateFileOptions struct + Branch string + Content string + Message string + SHA string + type UpdateIssueOptions struct + Assignee string + Assignees []string + Body string + Labels []string + Milestone int64 + State IssueState + StateEvent string + Title string + type UpdateLabelOptions struct + Color string + Name string + type UpdateMemberOptions struct + Permission string + type UpdateMilestoneOptions struct + Description string + DueOn string + State string + Title string + type UpdateOrgOptions struct + Description string + Email string + HTMLURL string + Location string + Name string + type UpdatePullRequestOptions struct + Base string + Body string + State PullRequestState + StateEvent string + Title string + type UpdateRepositoryOptions struct + DefaultBranch string + Description string + Name string + Private *bool + type UpdateWebhookOptions struct + Active *bool + Events []string + Secret string + URL string + type User struct + AvatarURL string + Email string + HTMLURL string + ID FlexString + Login string + Name string + Type string + type UserEvent struct + Action int + ActionName string + AuthorID int64 + AuthorUsername string + CreatedAt string + ProjectID int64 + ProjectName string + PushData ... + type UserEventsResponse struct + Events map[string][]*UserEvent + Next string + type UserMembership struct + Active bool + AvatarURL string + ID int64 + Name string + Organization ... + Path string + Role string + URL string + User *User + type Webhook struct + Active bool + CreatedAt time.Time + Events []string + ID int64 + IssuesEvents bool + MergeRequestsEvents bool + NoteEvents bool + PushEvents bool + TagPushEvents bool + URL string + UpdatedAt time.Time + type WebhookEvent struct + After string + Before string + Commits []*Commit + Ref string + Repository *Repository + Sender *User v0.2.0 Jun 11, 2026 v0.1.0 May 28, 2026