Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { ListIssues(owner, repo string) ([]*gogh.Issue, error) ListComments( owner, repo string, issue *gogh.Issue, since time.Time, ) ([]*gogh.IssueComment, error) GetUser(login string) (*gogh.User, error) }
Client 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.
func New ¶
New creates a GitHubClient 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.
Click to show internal directories.
Click to hide internal directories.