{"modulePath":"github.com/indeedeng/issue-sync","version":"v1.0.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package issuesyncgithub\n\n## Functions\n\n```go\nfunc GetUser(g Client, log logrus.Entry, timeout time.Duration, userName string) (github.User, error)\n```\nGetUser returns a GitHub user from its login.\n\n```go\nfunc ListComments(g Client, timeout time.Duration, user string, repoName string, issue github.Issue) ([]*github.IssueComment, error)\n```\nListComments returns the list of all comments on a GitHub issue in ascending order of creation.\n\n```go\nfunc ListIssues(g Client, timeout time.Duration, user string, repoName string, since time.Time) ([]models.ExtendedGithubIssue, error)\n```\nListIssues returns the list of GitHub issues since the last run of the tool.\n\n## Types\n\n```go\ntype Client interface {\n\t// contains filtered or unexported methods\n}\n```\nClient is a wrapper around the GitHub API Client library we use. It allows us to swap in other implementations, such as a dry run clients, or mock clients for testing.\n\n```go\nfunc NewClient(config cfg.Config) (Client, error)\n```\nNewClient creates a Client and returns it; which implementation it uses depends on the configuration of this run. For example, a dry-run clients may be created which does not make any requests that would change anything on the server, but instead simply prints out the actions that it's asked to take.\n\n```go\ntype TestGHClient struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTestClient() TestGHClient\n```\n\n","path":"github.com/indeedeng/issue-sync/lib/issuesyncgithub","name":"issuesyncgithub","synopsis":"","isRedistributable":true}
