diff --git a/.codeowners b/.codeowners index 75c73be..9cb0383 100644 --- a/.codeowners +++ b/.codeowners @@ -1,3 +1,2 @@ # For now, Hans reviews everything -* @BakerNet -codeowners.toml @zbedforrest +* @BakerNet @zbedforrest diff --git a/README.md b/README.md index b80807b..328cd1c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Code Ownership & Review Assignment Tool - GitHub CODEOWNERS but better [![Go Report Card](https://goreportcard.com/badge/github.com/multimediallc/codeowners-plus)](https://goreportcard.com/report/github.com/multimediallc/codeowners-plus?kill_cache=1) [![Tests](https://github.com/multimediallc/codeowners-plus/actions/workflows/go.yml/badge.svg)](https://github.com/multimediallc/codeowners-plus/actions/workflows/go.yml) -![Coverage](https://img.shields.io/badge/Coverage-83.0%25-brightgreen) +![Coverage](https://img.shields.io/badge/Coverage-83.1%25-brightgreen) [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md) diff --git a/internal/github/gh.go b/internal/github/gh.go index ef77ec2..90f0dfe 100644 --- a/internal/github/gh.go +++ b/internal/github/gh.go @@ -162,7 +162,7 @@ func (gh *GHClient) approvals() []*github.PullRequestReview { if _, ok := seen[userName]; ok { // we only care about the most recent reviews for each user return false - } else { + } else if approval.GetState() == "APPROVED" { seen[userName] = true } return approval.GetState() == "APPROVED"