From 2fafe57e5fe660b2096231a12b69cf62875c0c8f Mon Sep 17 00:00:00 2001 From: okseby Date: Tue, 29 Aug 2023 09:24:00 -0400 Subject: [PATCH] I think this fixes it? --- bot/utils.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/utils.go b/bot/utils.go index 6eb3846..9e98ebf 100644 --- a/bot/utils.go +++ b/bot/utils.go @@ -140,7 +140,10 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) { if strings.Contains(comment.GetBody(), "+1") && !strings.Contains(commentAuthor, "bot") { value, exists := approvals[prNumber] - if !(exists && strings.Contains(value, commentAuthor)) { + if exists && !strings.Contains(value, commentAuthor) { + reactionCount++ + approvals[prNumber] = commentAuthor + } else if !exists { reactionCount++ approvals[prNumber] = commentAuthor } else {