Documentation
¶
Index ¶
- type Client
- func (client *Client) CreateComment(ctx context.Context, thread *Thread, body string)
- func (client *Client) HandleEvent() func(http.ResponseWriter, *http.Request)
- func (Client *Client) RegisterOnCommented(f OnCommentedFunc)
- func (client *Client) VerifyURL(rawURL string) (owner, repo string, num int, err error)
- type OnCommentedFunc
- type Thread
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateComment ¶
func (*Client) HandleEvent ¶
func (client *Client) HandleEvent() func(http.ResponseWriter, *http.Request)
HandleEvent returns handlerFunc for github webhook event requests.
func (*Client) RegisterOnCommented ¶
func (Client *Client) RegisterOnCommented(f OnCommentedFunc)
func (*Client) VerifyURL ¶
VerifyURL parses and verifies the URL and returns an error if the URL is incorrect. https://pkg.go.dev/github.com/google/go-github/v45@v45.0.0/github?utm_source=gopls#Issue > Note: As far as the GitHub API is concerned, every pull request is an issue, but not every issue is a pull request. Some endpoints, events, and webhooks may also return pull requests via this struct.
type OnCommentedFunc ¶
type OnCommentedFunc func(client *Client, thread *Thread, comment *github.IssueComment) error
Click to show internal directories.
Click to hide internal directories.