Merge pull request #17 from rowbawts/test

Merging based on reactions
This commit is contained in:
openest-source-bot[bot] 2023-08-28 22:52:10 +00:00 committed by GitHub
commit e4c27d0679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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" {