Documentation
¶
Index ¶
- func EmbedFingerprint(body, fp string) string
- func ExtractFingerprint(body string) string
- type AbuseRateLimitError
- type CommentAlreadyWrittenError
- type CommentNotValidError
- type Github
- func (c *Github) ReconcileAquaComments(marker string, current []commenter.Finding) error
- func (c *Github) RemovePreviousAquaComments(msg string) error
- func (c *Github) WriteLineComment(file, comment string, line int) error
- func (c *Github) WriteMultiLineComment(file, comment string, startLine, endLine int) error
- type PrDoesNotExistError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmbedFingerprint ¶ added in v0.16.0
func ExtractFingerprint ¶ added in v0.16.0
Types ¶
type AbuseRateLimitError ¶
type AbuseRateLimitError struct {
BackoffInSeconds int
// contains filtered or unexported fields
}
AbuseRateLimitError return when the GitHub abuse rate limit is hit
func (AbuseRateLimitError) Error ¶
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 Github ¶
type Github struct {
Token string
Owner string
Repo string
PrNumber int
// GraphQLEndpoint is overridable for tests / future GHE support.
GraphQLEndpoint string
// contains filtered or unexported fields
}
func NewGithubServer ¶ added in v0.8.2
func (*Github) ReconcileAquaComments ¶ added in v0.16.0
func (*Github) RemovePreviousAquaComments ¶ added in v0.5.0
func (*Github) 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.