I think this fixes it?

This commit is contained in:
Sebastian Cabrera 2023-08-29 09:24:00 -04:00
parent 02f6ef9481
commit 2fafe57e5f

View file

@ -140,7 +140,10 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) {
if strings.Contains(comment.GetBody(), "+1") && !strings.Contains(commentAuthor, "bot") {
value, exists := approvals[prNumber]
if !(exists && strings.Contains(value, commentAuthor)) {
if exists && !strings.Contains(value, commentAuthor) {
reactionCount++
approvals[prNumber] = commentAuthor
} else if !exists {
reactionCount++
approvals[prNumber] = commentAuthor
} else {