package
2.0.0+incompatible
Repository: https://github.com/bitspark/go-github.git
Documentation: pkg.go.dev

# Functions

Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
CheckResponse checks the API response for errors, and returns them if present.
Int is a helper routine that allocates a new int value to store v and returns a pointer to it.
NewClient returns a new GitHub API client.
String is a helper routine that allocates a new string value to store v and returns a pointer to it.
Stringify attempts to create a reasonable string representation of types in the GitHub library.
ValidatePayload validates an incoming GitHub Webhook event request and returns the (JSON) payload.

# Constants

This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
REVISIT: is this actually returned, or just a documentation artifact?.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
This is the set of scopes for GitHub API V3.
StatusUnprocessableEntity is the status code returned when sending a request with invalid fields.
Tarball specifies an archive in gzipped tar format.
Zipball specifies an archive in zip format.

# Structs

ActivityListStarredOptions specifies the optional parameters to the ActivityService.ListStarred method.
ActivityService handles communication with the activity related methods of the GitHub API.
APIMeta represents metadata about the GitHub API.
Authorization represents an individual GitHub authorization.
AuthorizationApp represents an individual GitHub app (in the context of authorization).
AuthorizationRequest represents a request to create an authorization.
AuthorizationsService handles communication with the authorization related methods of the GitHub API.
AuthorizationUpdateRequest represents a request to update an authorization.
BasicAuthTransport is an http.RoundTripper that authenticates all requests using HTTP Basic Authentication with the provided username and password.
Blob represents a blob object.
Branch represents a repository branch.
A Client manages communication with the GitHub API.
CodeResult represents a single search result.
CodeSearchResult represents the result of an code search.
CombinedStatus represents the combined status of a repository at a particular reference.
Commit represents a GitHub commit.
CommitAuthor represents the author or committer of a commit.
CommitCommentEvent is triggered when a commit comment is created.
CommitFile represents a file modified in a commit.
CommitsComparison is the result of comparing two commits.
CommitsListOptions specifies the optional parameters to the RepositoriesService.ListCommits method.
CommitStats represents the number of additions / deletions from a file in a given RepositoryCommit.
Contributor represents a repository contributor.
ContributorStats represents a contributor to a repository and their weekly contributions to a given repo.
CreateEvent represents a created repository, branch, or tag.
DeleteEvent represents a deleted branch or tag.
Deployment represents a deployment in a repo.
DeploymentEvent represents a deployment.
DeploymentRequest represents a deployment request.
DeploymentsListOptions specifies the optional parameters to the RepositoriesService.ListDeployments method.
DeploymentStatus represents the status of a particular deployment.
DeploymentStatusEvent represents a deployment status.
DeploymentStatusRequest represents a deployment request.
EditChange represents the changes when an issue, pull request, or comment has been edited.
An Error reports more details on an individual error in an ErrorResponse.
An ErrorResponse reports one or more errors caused by an API request.
Event represents a GitHub event.
FeedLink represents a link to a related resource.
Feeds represents timeline resources in Atom format.
ForkEvent is triggered when a user forks a repository.
Gist represents a GitHub's gist.
GistComment represents a Gist comment.
GistFile represents a file on a gist.
GistListOptions specifies the optional parameters to the GistsService.List, GistsService.ListAll, and GistsService.ListStarred methods.
GistsService handles communication with the Gist related methods of the GitHub API.
Gitignore represents a .gitignore file as returned by the GitHub API.
GitignoresService provides access to the gitignore related functions in the GitHub API.
GitObject represents a Git object.
GitService handles communication with the git data related methods of the GitHub API.
GollumEvent is triggered when a Wiki page is created or updated.
GPGEmail represents an email address associated to a GPG key.
GPGKey represents a GitHub user's public GPG key used to verify GPG signed commits and tags.
Hook represents a GitHub (web and service) hook for a repository.
Import represents a repository import request.
Issue represents a GitHub issue on a repository.
DEPRECATED: IssueActivityEvent represents the payload delivered by Issue webhook Use IssuesEvent instead.
IssueComment represents a comment left on an issue.
IssueCommentEvent is triggered when an issue comment is created on an issue or pull request.
IssueEvent represents an event that occurred around an Issue or Pull Request.
IssueListByRepoOptions specifies the optional parameters to the IssuesService.ListByRepo method.
IssueListCommentsOptions specifies the optional parameters to the IssuesService.ListComments method.
IssueListOptions specifies the optional parameters to the IssuesService.List and IssuesService.ListByOrg methods.
IssueRequest represents a request to create/edit an issue.
IssuesEvent is triggered when an issue is assigned, unassigned, labeled, unlabeled, opened, closed, or reopened.
IssuesSearchResult represents the result of an issues search.
IssuesService handles communication with the issue related methods of the GitHub API.
Key represents a public SSH key used to authenticate a user or deploy script.
Label represents a GitHub label on an Issue.
LargeFile identifies a file larger than 100MB found during a repository import.
License represents an open source license.
LicensesService handles communication with the license related methods of the GitHub API.
ListContributorsOptions specifies the optional parameters to the RepositoriesService.ListContributors method.
ListMembersOptions specifies optional parameters to the OrganizationsService.ListMembers method.
ListOptions specifies the optional parameters to various List methods that support pagination.
ListOrgMembershipsOptions specifies optional parameters to the OrganizationsService.ListOrgMemberships method.
MarkdownOptions specifies optional parameters to the Markdown method.
Match represents a single text match.
MemberEvent is triggered when a user is added as a collaborator to a repository.
Membership represents the status of a user's membership in an organization or team.
MembershipEvent is triggered when a user is added or removed from a team.
Migration represents a GitHub migration (archival).
MigrationOptions specifies the optional parameters to Migration methods.
MigrationService provides access to the migration related functions in the GitHub API.
Milestone represents a Github repository milestone.
MilestoneListOptions specifies the optional parameters to the IssuesService.ListMilestones method.
NewPullRequest represents a new pull request to be created.
Notification identifies a GitHub notification for a user.
NotificationListOptions specifies the optional parameters to the ActivityService.ListNotifications method.
NotificationSubject identifies the subject of a notification.
Organization represents a GitHub organization account.
OrganizationAddTeamMembershipOptions does stuff specifies the optional parameters to the OrganizationsService.AddTeamMembership method.
OrganizationAddTeamRepoOptions specifies the optional parameters to the OrganizationsService.AddTeamRepo method.
OrganizationListTeamMembersOptions specifies the optional parameters to the OrganizationsService.ListTeamMembers method.
OrganizationsListOptions specifies the optional parameters to the OrganizationsService.ListAll method.
OrganizationsService provides access to the organization related functions in the GitHub API.
Page represents a single Wiki page.
PageBuildEvent represents an attempted build of a GitHub Pages site, whether successful or not.
Pages represents a GitHub Pages site configuration.
PagesBuild represents the build information for a GitHub Pages site.
PagesError represents a build error for a GitHub Pages site.
Plan represents the payment plan for an account.
Protection represents a repository branch's protection.
PublicEvent is triggered when a private repository is open sourced.
PullRequest represents a GitHub pull request on a repository.
PullRequestBranch represents a base or head branch in a GitHub pull request.
PullRequestComment represents a comment left on a pull request.
PullRequestEvent is triggered when a pull request is assigned, unassigned, labeled, unlabeled, opened, closed, reopened, or synchronized.
PullRequestLinks object is added to the Issue object when it's an issue included in the IssueCommentEvent webhook payload, if the webhooks is fired by a comment on a PR.
PullRequestListCommentsOptions specifies the optional parameters to the PullRequestsService.ListComments method.
PullRequestListOptions specifies the optional parameters to the PullRequestsService.List method.
PullRequestMergeResult represents the result of merging a pull request.
PullRequestOptions lets you define how a pull request will be merged.
PullRequestReviewCommentEvent is triggered when a comment is created on a portion of the unified diff of a pull request.
PullRequestsService handles communication with the pull request related methods of the GitHub API.
PunchCard represents the number of commits made during a given hour of a day of thew eek.
PushEvent represents a git push to a GitHub repository.
PushEventCommit represents a git commit in a GitHub PushEvent.
PushEventRepoOwner is a basic reporesntation of user/org in a PushEvent payload.
PushEventRepository represents the repo object in a PushEvent payload.
Rate represents the rate limit for the current client.
RateLimitError occurs when GitHub returns 403 Forbidden response with a rate limit remaining value of 0, and error message starts with "API rate limit exceeded for ".
RateLimits represents the rate limits for the current client.
Reaction represents a GitHub reaction.
Reactions represents a summary of GitHub reactions.
ReactionsService provides access to the reactions-related functions in the GitHub API.
Reference represents a GitHub reference.
ReferenceListOptions specifies optional parameters to the GitService.ListRefs method.
ReleaseAsset represents a Github release asset in a repository.
ReleaseEvent is triggered when a release is published.
Rename contains details for 'renamed' events.
RepositoriesSearchResult represents the result of a repositories search.
RepositoriesService handles communication with the repository related methods of the GitHub API.
Repository represents a GitHub repository.
RepositoryAddCollaboratorOptions specifies the optional parameters to the RepositoriesService.AddCollaborator method.
RepositoryComment represents a comment for a commit, file, or line in a repository.
RepositoryCommit represents a commit in a repo.
RepositoryContent represents a file or directory in a github repository.
RepositoryContentFileOptions specifies optional parameters for CreateFile, UpdateFile, and DeleteFile.
RepositoryContentGetOptions represents an optional ref parameter, which can be a SHA, branch, or tag.
RepositoryContentResponse holds the parsed response from CreateFile, UpdateFile, and DeleteFile.
RepositoryCreateForkOptions specifies the optional parameters to the RepositoriesService.CreateFork method.
RepositoryEvent is triggered when a repository is created.
RepositoryListAllOptions specifies the optional parameters to the RepositoriesService.ListAll method.
RepositoryListByOrgOptions specifies the optional parameters to the RepositoriesService.ListByOrg method.
RepositoryListForksOptions specifies the optional parameters to the RepositoriesService.ListForks method.
RepositoryListOptions specifies the optional parameters to the RepositoriesService.List method.
RepositoryMergeRequest represents a request to merge a branch in a repository.
RepositoryParticipation is the number of commits by everyone who has contributed to the repository (including the owner) as well as the number of commits by the owner themself.
RepositoryRelease represents a GitHub release in a repository.
RepositoryTag represents a repository tag.
RepoStatus represents the status of a repository at a particular reference.
RequiredStatusChecks represents the protection status of a individual branch.
Response is a GitHub API response.
SearchOptions specifies optional parameters to the SearchService methods.
SearchService provides access to the search related functions in the GitHub API.
ServiceHook represents a hook that has configuration settings, a list of available events, and default events.
SignatureVerification represents GPG signature verification.
Source represents a reference's source.
SourceImportAuthor identifies an author imported from a source repository.
Stargazer represents a user that has starred a repository.
StarredRepository is returned by ListStarred.
StatusEvent is triggered when the status of a Git commit changes.
Subscription identifies a repository or thread subscription.
Tag represents a tag object.
Team represents a team within a GitHub organization.
TeamAddEvent is triggered when a repository is added to a team.
TextMatch represents a text match for a SearchResult.
Timeline represents an event that occurred around an Issue or Pull Request.
Timestamp represents a time that can be unmarshalled from a JSON string formatted as either an RFC3339 or Unix timestamp.
Tree represents a GitHub tree.
TreeEntry represents the contents of a tree structure.
UnauthenticatedRateLimitedTransport allows you to make unauthenticated calls that need to use a higher rate limit associated with your OAuth application.
UploadOptions specifies the parameters to methods that support uploads.
User represents a GitHub user.
UserEmail represents user's email address.
UserListOptions specifies optional parameters to the UsersService.ListAll method.
UsersSearchResult represents the result of an issues search.
UsersService handles communication with the user related methods of the GitHub API.
WatchEvent is related to starring a repository, not watching.
WebHookAuthor represents the author or committer of a commit, as specified in a WebHookCommit.
WebHookCommit represents the commit variant we receive from GitHub in a WebHookPayload.
WebHookPayload represents the data that is received from GitHub when a push event hook is triggered.
WeeklyCommitActivity represents the weekly commit activity for a repository.
WeeklyStats represents the number of additions, deletions and commits a Contributor made in a given week.

# Type aliases

GistFilename represents filename on a gist.
Scope models a GitHub authorization scope.
TwoFactorAuthError occurs when using HTTP Basic Authentication for a user that has two-factor authentication enabled.