From e63bd7fd867e20bb0118a56d686750117995d671 Mon Sep 17 00:00:00 2001 From: okseby Date: Mon, 28 Aug 2023 18:48:24 -0400 Subject: [PATCH] Fix thumbs up (:+1:) checking --- bot/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/utils.go b/bot/utils.go index bb93cce..dc9e2fe 100644 --- a/bot/utils.go +++ b/bot/utils.go @@ -113,7 +113,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) { // Check if there are thumbs up (:+1:) reactions for _, comment := range comments { - if comment.GetBody() == "+1" || comment.GetBody() == ":+1:" || comment.GetBody() == ":+1: " { + if strings.Contains(comment.GetBody(), "+1") { reactionCount++ if reactionCount >= reactionCountGoal {