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