I think this fixes it?
This commit is contained in:
parent
02f6ef9481
commit
2fafe57e5f
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue