Skip to content

Commit

Permalink
Fix #48: Use IssueCommentEvent's action in post msg (#63)
Browse files Browse the repository at this point in the history
* Fix #48: Use IssueCommentEvent's action in post msg

* Remove notification on comment edit/delete
  • Loading branch information
checkaayush authored and jwilander committed Mar 25, 2019
1 parent 9c2581e commit 5890626
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,11 @@ func (p *Plugin) handleCommentAuthorNotification(event *github.IssueCommentEvent
return
}

action := event.GetAction()
if action == "edited" || action == "deleted" {
return
}

authorUserID := p.getGitHubToUserIDMapping(author)
if authorUserID == "" {
return
Expand Down

0 comments on commit 5890626

Please sign in to comment.