From 8d9909e5efbbe42c9e2161108c353c9289440604 Mon Sep 17 00:00:00 2001 From: okseby Date: Mon, 28 Aug 2023 19:02:30 -0400 Subject: [PATCH] Still confused --- bot/utils.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/utils.go b/bot/utils.go index fd6c690..ddc90e0 100644 --- a/bot/utils.go +++ b/bot/utils.go @@ -104,6 +104,8 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) { if strings.Contains(comment.GetBody(), "+1") { reactionCount++ + fmt.Println(comment.GetBody()) + if reactionCount >= reactionCountGoal { // Merge the pull request merge := &github.PullRequestOptions{ @@ -114,7 +116,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) { if err != nil { log.Println("Error merging pull request:", err) } else { - log.Println("Pull request merged successfully") + log.Println("Pull request", prNumber, "merged successfully") } return