Skip to content

Commit

Permalink
Merge pull request #8 from peaceiris/rule_events-discussion
Browse files Browse the repository at this point in the history
add rules discussion and discussion_comment
  • Loading branch information
rhysd committed Jul 21, 2021
2 parents bfecca8 + 74ef95d commit 6c6c9b3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions rule_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,24 @@ func (rule *RuleEvents) checkWebhookEvent(event *WebhookEvent) {
case "delete":
case "deployment":
case "deployment_status":
case "discussion":
types = []string{
"opened",
"edited",
"deleted",
"transferred",
"pinned",
"unpinned",
"labeled",
"unlabeled",
"locked",
"unlocked",
"category_changed",
"answered",
"unanswered",
}
case "discussion_comment":
types = []string{"created", "edited", "deleted"}
case "fork":
case "gollum":
case "issue_comment":
Expand Down

0 comments on commit 6c6c9b3

Please sign in to comment.