Merge pull request #14823 from issyl0/contributions-reviews-approved

dev-cmd/contributions: Only count approving reviews
This commit is contained in:
Mike McQuaid 2023-02-28 13:22:52 +00:00 committed by GitHub
commit 70d3417319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,14 @@ module Homebrew
data[repo] = {
commits: GitHub.repo_commit_count_for_user(repo_full_name, person, args),
coauthorships: git_log_trailers_cmd(T.must(repo_path), person, "Co-authored-by", args),
reviews: GitHub.count_issues("", is: "pr", repo: repo_full_name, reviewed_by: person, args: args),
reviews: GitHub.count_issues(
"",
is: "pr",
repo: repo_full_name,
reviewed_by: person,
review: "approved",
args: args,
),
}
end