Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbuseRateLimitError ¶ added in v0.0.12
type AbuseRateLimitError struct {
BackoffInSeconds int
// contains filtered or unexported fields
}
AbuseRateLimitError return when the GitHub abuse rate limit is hit
func (AbuseRateLimitError) Error ¶ added in v0.0.12
func (e AbuseRateLimitError) Error() string
type CommentAlreadyWrittenError ¶
type CommentAlreadyWrittenError struct {
// contains filtered or unexported fields
}
CommentAlreadyWrittenError returned when the error can't be written as it already exists
func (CommentAlreadyWrittenError) Error ¶
func (e CommentAlreadyWrittenError) Error() string
type CommentNotValidError ¶
type CommentNotValidError struct {
// contains filtered or unexported fields
}
CommentNotValidError returned when the comment is for a file or line not in the pr
func (CommentNotValidError) Error ¶
func (e CommentNotValidError) Error() string
type Commenter ¶
type Commenter struct {
// contains filtered or unexported fields
}
Commenter is the main commenter struct
func NewCommenter ¶
NewCommenter creates a Commenter for updating PR with comments
func NewEnterpriseCommenter ¶ added in v0.0.14
func NewEnterpriseCommenter(token, baseUrl, uploadUrl, owner, repo string, prNumber int) (*Commenter, error)
NewEnterpriseCommenter creates a Commenter for updating PR with comments in an Enterprise Github Server
func (*Commenter) WriteGeneralComment ¶ added in v0.0.8
func (*Commenter) WriteLineComment ¶
WriteLineComment writes a single review line on a file of the github PR
type PrDoesNotExistError ¶
type PrDoesNotExistError struct {
// contains filtered or unexported fields
}
PrDoesNotExistError returned when the PR can't be found, either as 401 or not existing
func (PrDoesNotExistError) Error ¶
func (e PrDoesNotExistError) Error() string
Click to show internal directories.
Click to hide internal directories.