{"modulePath":"knative.dev/test-infra","version":"v0.0.0-20210308150621-72347e0c59f7","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubClient\n\nCopyright 2019 The Knative Authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n\thttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n## Types\n\n```go\ntype GithubClient struct {\n\tIssues       Issues\n\tPullRequests PullRequests\n}\n```\n\n```go\nfunc Make(ctx context.Context, githubToken string) *GithubClient\n```\nGet the github client\n\n```go\nfunc New(issues Issues, pullRequests PullRequests) *GithubClient\n```\n\n```go\ntype Issues interface {\n\tCreateComment(ctx context.Context, owner string, repo string, number int,\n\t\tcomment *github.IssueComment) (*github.IssueComment, *github.Response, error)\n\tDeleteComment(ctx context.Context, owner string, repo string, commentID int64) (\n\t\t*github.Response, error)\n\tListComments(ctx context.Context, owner string, repo string, number int,\n\t\topt *github.IssueListCommentsOptions) ([]*github.IssueComment, *github.Response, error)\n}\n```\n\n```go\ntype PullRequests interface {\n\tListFiles(ctx context.Context, owner string, repo string, number int, opt *github.ListOptions) (\n\t\t[]*github.CommitFile, *github.Response, error)\n}\n```\n\n","path":"knative.dev/test-infra/tools/coverage/githubUtil/githubClient","name":"githubClient","synopsis":"","isRedistributable":true}
