Fixed reaction counting bug (i think)

This commit is contained in:
Sebastian Cabrera 2023-08-28 18:51:22 -04:00
parent e63bd7fd86
commit b44f52fe4c

View file

@ -115,6 +115,8 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) {
for _, comment := range comments {
if strings.Contains(comment.GetBody(), "+1") {
reactionCount++
}
}
if reactionCount >= reactionCountGoal {
// Merge the pull request
@ -147,8 +149,6 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) {
}
}
}
}
}
func processPullRequestEvent(event *github.PullRequestEvent) {
if event.GetAction() == "opened" || event.GetAction() == "reopened" {