{"modulePath":"github.com/abhinav/git-pr","version":"v0.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Types\n\n```go\ntype Gateway struct {\n\t// contains filtered or unexported fields\n}\n```\nGateway is a GitHub gateway that makes actual requests to GitHub.\n\n```go\nfunc NewGatewayForRepository(client *github.Client, repo *repo.Repo) *Gateway\n```\nNewGatewayForRepository builds a new GitHub gateway for the given GitHub repository.\n\n```go\nfunc (g *Gateway) DeleteBranch(ctx context.Context, name string) error\n```\nDeleteBranch deletes the given remote branch.\n\n```go\nfunc (g *Gateway) GetBuildStatus(ctx context.Context, ref string) (*gateway.BuildStatus, error)\n```\nGetBuildStatus gets the build status for the given ref.\n\n```go\nfunc (g *Gateway) GetPullRequestPatch(ctx context.Context, number int) (string, error)\n```\nGetPullRequestPatch retrieves the raw patch for the given PR. The contents of the patch may be applied using the git-am command.\n\n```go\nfunc (g *Gateway) IsOwned(ctx context.Context, br *github.PullRequestBranch) bool\n```\nIsOwned checks if this branch is local to this repository.\n\n```go\nfunc (g *Gateway) ListPullRequestReviews(ctx context.Context, number int) ([]*gateway.PullRequestReview, error)\n```\nListPullRequestReviews lists reviews for a pull request.\n\n```go\nfunc (g *Gateway) ListPullRequestsByBase(ctx context.Context, branch string) ([]*github.PullRequest, error)\n```\nListPullRequestsByBase lists pull requests made against the given merge base.\n\n```go\nfunc (g *Gateway) ListPullRequestsByHead(ctx context.Context, owner, branch string) ([]*github.PullRequest, error)\n```\nListPullRequestsByHead lists pull requests with the given head.\n\n```go\nfunc (g *Gateway) SetPullRequestBase(ctx context.Context, number int, base string) error\n```\nSetPullRequestBase changes the merge base for the given PR.\n\n```go\nfunc (g *Gateway) SquashPullRequest(ctx context.Context, pr *github.PullRequest) error\n```\nSquashPullRequest merges given pull request. The title and description are used as-is for the commit message.\n\n```go\ntype GitService interface {\n\tDeleteRef(\n\t\tctx context.Context,\n\t\towner string, repo string, ref string,\n\t) (*github.Response, error)\n}\n```\nGitService is a subset of the GitHub Git API.\n\n```go\ntype PullRequestsService interface {\n\tEdit(\n\t\tctx context.Context,\n\t\towner string, repo string, number int,\n\t\tpull *github.PullRequest,\n\t) (*github.PullRequest, *github.Response, error)\n\n\tGetRaw(\n\t\tctx context.Context,\n\t\towner string, repo string, number int, opt github.RawOptions,\n\t) (string, *github.Response, error)\n\n\tList(\n\t\tctx context.Context,\n\t\towner string, repo string, opt *github.PullRequestListOptions,\n\t) ([]*github.PullRequest, *github.Response, error)\n\n\tListReviews(\n\t\tctx context.Context,\n\t\towner, repo string, number int,\n\t) ([]*github.PullRequestReview, *github.Response, error)\n\n\tMerge(\n\t\tctx context.Context,\n\t\towner string, repo string, number int,\n\t\tcommitMessage string,\n\t\toptions *github.PullRequestOptions,\n\t) (*github.PullRequestMergeResult, *github.Response, error)\n}\n```\nPullRequestsService is a subset of the GitHub Pull Requests API.\n\n```go\ntype RepositoriesService interface {\n\tGetCombinedStatus(ctx context.Context,\n\t\towner, repo, ref string, opt *github.ListOptions,\n\t) (*github.CombinedStatus, *github.Response, error)\n}\n```\nRepositoriesService is a subset of the GitHub Repositories API.\n\n","path":"github.com/abhinav/git-pr/github","name":"github","synopsis":"","isRedistributable":true}
