Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateIssue(owner, repo string, issue *github.IssueRequest) (*github.Issue, error)
- func (c *Client) ListRepos(username string) ([]*github.Repository, error)
- func (c *Client) ReplyComment(owner, repo string, commentID int, comment string) (*github.IssueComment, error)
- func (c *Client) SubmitComment(owner, repo string, issueNumber int, comment string) (*github.IssueComment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
* The github package exports a Client struct which has a GithubClient field of * type *github.Client. The NewClient function returns a new Client struct with a * properly instantiated GithubClient field. The ListRepos, CreateIssue, * SubmitComment, and ReplyComment methods are provided as an example of how to * use the GithubClient to interact with the GitHub API to list repos, create * issues, submit comments, and reply to comments
Client struct to hold the github client
func (*Client) CreateIssue ¶
CreateIssue creates an issue in a repo
func (*Client) ListRepos ¶
func (c *Client) ListRepos(username string) ([]*github.Repository, error)
ListRepos lists the repos of a user
func (*Client) ReplyComment ¶
func (c *Client) ReplyComment(owner, repo string, commentID int, comment string) (*github.IssueComment, error)
ReplyComment reply to a comment on an issue
func (*Client) SubmitComment ¶
func (c *Client) SubmitComment(owner, repo string, issueNumber int, comment string) (*github.IssueComment, error)
SubmitComment submit a comment to an issue