Documentation
¶
Index ¶
- type GithubComment
- func (gc *GithubComment) FindIssueComment(issueID int, id ID) (*github.Issue, *github.IssueComment, error)
- func (gc *GithubComment) GetIssueComment(issueID int, id ID) (*Info, error)
- func (gc *GithubComment) PostIssueComment(issueID int, id ID, text string, meta interface{}) error
- func (gc *GithubComment) PostOrUpdateIssueComment(issueID int, id ID, text string, meta interface{}) error
- func (gc *GithubComment) UpdateIssueComment(issueID int, id ID, text string, meta interface{}) error
- type ID
- type IDMustBeSpecifiedError
- type Info
- type IssueCommentNotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubComment ¶
type GithubComment struct { Client *github.Client Context context.Context Owner string Repository string }
func (*GithubComment) FindIssueComment ¶
func (gc *GithubComment) FindIssueComment(issueID int, id ID) (*github.Issue, *github.IssueComment, error)
FindIssueComment finds a issue comment and returns it
func (*GithubComment) GetIssueComment ¶
func (gc *GithubComment) GetIssueComment(issueID int, id ID) (*Info, error)
GetIssueComment returns the info for a comment
func (*GithubComment) PostIssueComment ¶
func (gc *GithubComment) PostIssueComment(issueID int, id ID, text string, meta interface{}) error
PostIssueComment posts a new comment with the specified id
func (*GithubComment) PostOrUpdateIssueComment ¶
func (gc *GithubComment) PostOrUpdateIssueComment(issueID int, id ID, text string, meta interface{}) error
PostOrUpdateIssueComment posts an new comment if it was not able to update the existing comment, if you omit the ID it will always post a new comment
func (*GithubComment) UpdateIssueComment ¶
func (gc *GithubComment) UpdateIssueComment(issueID int, id ID, text string, meta interface{}) error
UpdateIssueComment updates an existing comment
type IDMustBeSpecifiedError ¶
type IDMustBeSpecifiedError struct{}
func (IDMustBeSpecifiedError) Error ¶
func (e IDMustBeSpecifiedError) Error() string
type IssueCommentNotFoundError ¶
type IssueCommentNotFoundError struct {
ID ID
}
func (IssueCommentNotFoundError) Error ¶
func (e IssueCommentNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.