Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // lgtm label name LabelNameLgtm = util.LabelNameLgtm // regular expression to add lgtm RegAddLgtm = regexp.MustCompile(`(?mi)^/lgtm\s*$`) // regular expression to cancel lgtm RegCancelLgtm = regexp.MustCompile(`(?mi)^/lgtm cancel\s*$`) )
Functions ¶
func Add ¶
func Add(client *github.Client, r repository.Interface, event github.IssueCommentEvent) error
Add lgtm label
func Cancel ¶
func Cancel(client *github.Client, r repository.Interface, event github.IssueCommentEvent) error
Cancel removes lgtm label
func Handle ¶
func Handle(client *github.Client, r repository.Interface, event github.IssueCommentEvent) error
Handle event with lgtm
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.