Skip to content

Commit a54500e

Browse files
committed
Fix issue where Comments after an approval are resultingin approval not
being counted
1 parent 31c1dce commit a54500e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/github/gh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func (gh *GHClient) approvals() []*github.PullRequestReview {
162162
if _, ok := seen[userName]; ok {
163163
// we only care about the most recent reviews for each user
164164
return false
165-
} else {
165+
} else if approval.GetState() == "APPROVED" {
166166
seen[userName] = true
167167
}
168168
return approval.GetState() == "APPROVED"

0 commit comments

Comments
 (0)