Fixed reaction counting bug (i think)
This commit is contained in:
parent
e63bd7fd86
commit
b44f52fe4c
1 changed files with 25 additions and 25 deletions
|
@ -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" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue