{"modulePath":"github.com/kosli-dev/cli","version":"v0.1.41","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Functions\n\n```go\nfunc NewGithubClientFromToken(ctx context.Context, ghToken string, baseURL string) (*gh.Client, error)\n```\nNewGithubClientFromToken returns Github client with a token and context\n\n## Types\n\n```go\ntype GithubConfig struct {\n\tToken      string\n\tBaseURL    string\n\tOrg        string\n\tRepository string\n}\n```\n\n```go\nfunc (c *GithubConfig) GetPullRequestApprovers(number int) ([]string, error)\n```\nGetPullRequestApprovers returns a list of approvers for a given pull request\n\n```go\nfunc (c *GithubConfig) PREvidenceForCommit(commit string) ([]*types.PREvidence, error)\n```\n\n```go\nfunc (c *GithubConfig) PullRequestsForCommit(commit string) ([]*gh.PullRequest, error)\n```\nPullRequestsForCommit returns a list of pull requests for a specific commit\n\n","path":"github.com/kosli-dev/cli/internal/github","name":"github","synopsis":"","isRedistributable":true}
