Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaskOptions ¶
Types ¶
type APIEndpoint ¶
func ValidateAPIEndpoint ¶
func ValidateAPIEndpoint(unsafeAPIEndpoint string) (APIEndpoint, error)
type Options ¶
type Options struct { Tmpl *l10n.Template SendIfSuccess bool Token Token APIEndpoint APIEndpoint Owner Owner Repo Repo PullNumber PullNumber }
type PullNumber ¶
type PullNumber int
func ValidatePullNumber ¶
func ValidatePullNumber(unsafePullNumber int) (PullNumber, error)
type PullRequestComment ¶
type PullRequestComment struct {
Body string `json:"body"`
}
type PullRequestCommentSender ¶
type PullRequestCommentSender func(githubEndpoint APIEndpoint, token Token, owner Owner, repo Repo, pullNumber PullNumber, comment string) error
func NewPullRequestCommentSender ¶
func NewPullRequestCommentSender(send HttpFunc, logger logging.Logger) PullRequestCommentSender
type SendFunc ¶
type SendFunc func(result *checker.CheckResult, opts *Options) error
func NewSendFunc ¶
func NewSendFunc(postComment PullRequestCommentSender) SendFunc
func SpySendFunc ¶
func SpySendFunc(inherited SendFunc, callArgs *[]SendFuncCallArgs) SendFunc
func StubSendFunc ¶
type SendFuncCallArgs ¶
type SendFuncCallArgs struct { Result *checker.CheckResult Options *Options }
Click to show internal directories.
Click to hide internal directories.