From e76e22ca6b6cc3a4b733adf9753e7a230693b549 Mon Sep 17 00:00:00 2001 From: okseby Date: Mon, 28 Aug 2023 19:21:16 -0400 Subject: [PATCH] Move required thumbs up for merge to 5 --- bot/utils.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot/utils.go b/bot/utils.go index 06a52a5..4135188 100644 --- a/bot/utils.go +++ b/bot/utils.go @@ -90,7 +90,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) { repo := event.GetRepo().GetName() prNumber := event.GetIssue().GetNumber() reactionCount := 0 - reactionCountGoal := 2 + reactionCountGoal := 5 if event.GetIssue().IsPullRequest() { comments, _, err := client.Issues.ListComments(ctx, owner, repo, prNumber, nil) @@ -102,7 +102,6 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) { // Check if there are thumbs up (:+1:) reactions for _, comment := range comments { if strings.Contains(comment.GetBody(), "+1") && !strings.Contains(comment.GetUser().GetLogin(), "bot") { - fmt.Println(comment.GetUser().GetLogin()) reactionCount++ } }