Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) PostComment ¶
PostComment sends a comment to an issue.
func (*Client) ReactWithThumbsUp ¶
func (c *Client) ReactWithThumbsUp(ctx context.Context, issueComment *IssueComment) error
ReactWithThumbsUp sends a :+1: reaction to the given IssueComment.
func (*Client) UpdateIssueDescription ¶
func (c *Client) UpdateIssueDescription(ctx context.Context, issueComment *IssueComment, body string) error
UpdateIssueDescription updates the issue description.
type Comment ¶
type Comment struct { Body string `json:"body"` NodeID string `json:"node_id"` ID uint64 `json:"id"` Reactions `json:"reactions"` }
Comment holds the comment from the IssueComment.
type Issue ¶
type Issue struct { CommentsURL string `json:"comments_url"` Body string `json:"body"` State string `json:"state"` URL string `json:"url"` HTMLURL string `json:"html_url"` Title string `json:"title"` }
Issue holds the issue from the issue comment.
type IssueComment ¶
type IssueComment struct { Action string `json:"action"` Issue `json:"issue"` Comment `json:"comment"` }
IssueComment holds the comment received.
func (IssueComment) ToJSON ¶
func (ic IssueComment) ToJSON() ([]byte, error)
Converts the IssueComment into a JSON.
Click to show internal directories.
Click to hide internal directories.