{"modulePath":"github.com/koderover/zadig/v2","version":"v2.3.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Types\n\n```go\ntype Client struct {\n\t*github.Client\n}\n```\n\n```go\nfunc NewAppClient(cfg *Config) (*Client, error)\n```\nNewAppClient inits GitHub app client according to user's installation ID\n\n```go\nfunc NewClient(cfg *Config) *Client\n```\n\n```go\nfunc (c *Client) CreateCheckRun(ctx context.Context, owner, repo string, opts github.CreateCheckRunOptions) (*github.CheckRun, error)\n```\n\n```go\nfunc (c *Client) CreateHook(ctx context.Context, owner, repo string, hook *git.Hook) (*github.Hook, error)\n```\n\n```go\nfunc (c *Client) CreateStatus(ctx context.Context, owner, repo, ref string, status *github.RepoStatus) (*github.RepoStatus, error)\n```\n\n```go\nfunc (c *Client) DeleteHook(ctx context.Context, owner, repo string, id int64) error\n```\n\n```go\nfunc (c *Client) GetAuthenticatedUser(ctx context.Context) (*github.User, error)\n```\n\n```go\nfunc (c *Client) GetContents(ctx context.Context, owner, repo, path string, opts *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, error)\n```\n\n```go\nfunc (c *Client) GetLatestRepositoryCommit(ctx context.Context, owner, repo, path, branch string) (*github.RepositoryCommit, error)\n```\n\n```go\nfunc (c *Client) GetPullRequest(ctx context.Context, owner string, repo string, number int) (*github.PullRequest, error)\n```\n\n```go\nfunc (c *Client) GetTree(ctx context.Context, owner string, repo string, sha string, recursive bool) (*github.Tree, error)\n```\n\n```go\nfunc (c *Client) GetTreeContents(ctx context.Context, owner, repo, path, branch string) (afero.Fs, error)\n```\nGetTreeContents recursively gets all file contents under the given path, and writes to an in-memory file system.\n\n```go\nfunc (c *Client) GetYAMLContents(ctx context.Context, owner, repo, path, branch string, split bool) ([]string, error)\n```\nGetYAMLContents recursively gets all yaml contents under the given path. if split is true, manifests in the same file will be split to separated ones.\n\n```go\nfunc (c *Client) ListBranches(ctx context.Context, owner, repo string, opts *ListOptions) ([]*github.Branch, error)\n```\n\n```go\nfunc (c *Client) ListCommitsForBranch(ctx context.Context, owner, repo, branch string, opts *ListOptions) ([]*github.RepositoryCommit, error)\n```\n\n```go\nfunc (c *Client) ListCommitsForPR(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*github.RepositoryCommit, error)\n```\n\n```go\nfunc (c *Client) ListFiles(ctx context.Context, owner string, repo string, number int, opts *ListOptions) ([]*github.CommitFile, error)\n```\n\n```go\nfunc (c *Client) ListHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*github.Hook, error)\n```\n\n```go\nfunc (c *Client) ListInstallations(ctx context.Context, opts *ListOptions) ([]*github.Installation, error)\n```\n\n```go\nfunc (c *Client) ListOrganizationsForAuthenticatedUser(ctx context.Context, opts *ListOptions) ([]*github.Organization, error)\n```\n\n```go\nfunc (c *Client) ListPullRequests(ctx context.Context, owner string, repo string, opts *github.PullRequestListOptions) ([]*github.PullRequest, error)\n```\n\n```go\nfunc (c *Client) ListReleases(ctx context.Context, owner, repo string, opts *ListOptions) ([]*github.RepositoryRelease, error)\n```\n\n```go\nfunc (c *Client) ListRepositoriesForAuthenticatedUser(ctx context.Context, user string, opts *ListOptions) ([]*github.Repository, error)\n```\n\n```go\nfunc (c *Client) ListRepositoryCommits(ctx context.Context, owner, repo, path, branch string, opts *ListOptions) ([]*github.RepositoryCommit, error)\n```\n\n```go\nfunc (c *Client) ListTags(ctx context.Context, owner, repo string, opts *ListOptions) ([]*github.RepositoryTag, error)\n```\n\n```go\nfunc (c *Client) UpdateCheckRun(ctx context.Context, owner, repo string, checkRunID int64, opts github.UpdateCheckRunOptions) (*github.CheckRun, error)\n```\n\n```go\nfunc (c *Client) UpdateHook(ctx context.Context, owner, repo string, id int64, hook *git.Hook) (*github.Hook, error)\n```\n\n```go\ntype Config struct {\n\tBaseURL     string\n\tAccessToken string\n\tProxy       string\n\tAppKey      string\n\tAppID       int\n\tOwner       string\n\n\tHTTPClient *http.Client\n}\n```\n\n```go\ntype ListOptions struct {\n\t// Page number of the results to fetch. Default: 1\n\tPage int\n\t// Results per page (max 100). Default: 30\n\tPerPage int\n\n\t// NoPaginated indicates if we need to fetch all result or just one page. True means fetching just one page\n\tNoPaginated bool\n}\n```\n\n","path":"github.com/koderover/zadig/v2/pkg/tool/git/github","name":"github","synopsis":"","isRedistributable":true}
