From 5890626a5b4ebdb2d0f028e897f31ca0028c55b6 Mon Sep 17 00:00:00 2001 From: Aayush Sarva Date: Mon, 25 Mar 2019 22:00:03 +0530 Subject: [PATCH] Fix #48: Use IssueCommentEvent's action in post msg (#63) * Fix #48: Use IssueCommentEvent's action in post msg * Remove notification on comment edit/delete --- server/webhook.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/webhook.go b/server/webhook.go index 483a25a50..baa335d87 100644 --- a/server/webhook.go +++ b/server/webhook.go @@ -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