Skip to content

Commit 9d7c7b0

Browse files
committed
Fix issue where Comments after an approval are resultingin approval not
being counted
1 parent dd8326a commit 9d7c7b0

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
@@ -161,7 +161,7 @@ func (gh *GHClient) approvals() []*github.PullRequestReview {
161161
if _, ok := seen[userName]; ok {
162162
// we only care about the most recent reviews for each user
163163
return false
164-
} else {
164+
} else if approval.GetState() == "APPROVED" {
165165
seen[userName] = true
166166
}
167167
return approval.GetState() == "APPROVED"

0 commit comments

Comments
 (0)