{"modulePath":"github.com/blend/require-conditional-status-checks","version":"v0.0.0-20220204205450-070363af576e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\nPackage github is a focused wrapper around \\`github.com/google/go-github\\` with methods needed for \\`blend/require-conditional-status-checks\\`.\n\n## Functions\n\n```go\nfunc GetFile(ctx context.Context, c *github.Client, owner, repo, ref, path string) ([]byte, error)\n```\nGetFile downloads the contents of a file.\n\n```go\nfunc NewClient(ctx context.Context, rootURL, token string) (*github.Client, error)\n```\nNewClient creates a new client and determines if it's needed for the public GitHub API or GitHub Enterprise. The \\`rootURL\\` is expected to be the value of the \\`GITHUB\\_API\\_URL\\` environment variable / the \\`${{ github.api\\_url }}\\` context value.\n\n","path":"github.com/blend/require-conditional-status-checks/pkg/github","name":"github","synopsis":"Package github is a focused wrapper around `github.com/google/go-github` with methods needed for `blend/require-conditional-status-checks`.","isRedistributable":true}
