Fix thumbs up (👍) checking

This commit is contained in:
Sebastian Cabrera 2023-08-28 18:48:24 -04:00
parent f502fe0858
commit e63bd7fd86

View file

@ -113,7 +113,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) {
// Check if there are thumbs up (:+1:) reactions // Check if there are thumbs up (:+1:) reactions
for _, comment := range comments { for _, comment := range comments {
if comment.GetBody() == "+1" || comment.GetBody() == ":+1:" || comment.GetBody() == ":+1: " { if strings.Contains(comment.GetBody(), "+1") {
reactionCount++ reactionCount++
if reactionCount >= reactionCountGoal { if reactionCount >= reactionCountGoal {