dev-cmd/contributions: Use the correct variable name 🙄

This commit is contained in:
Issy Long 2023-03-15 12:50:14 +00:00 committed by GitHub
parent 03bd62ca0d
commit 0a804e1b38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,7 +208,7 @@ module Homebrew
sig { params(repo_full_name: String, person: String, args: Homebrew::CLI::Args).returns(Integer) }
def count_reviews(repo_full_name, person, args)
# Users who have made their contributions private are not searchable to determine counts.
return 0 if GitHub::API.open_rest("https://api.github.com/users/#{user}/events").empty?
return 0 if GitHub::API.open_rest("https://api.github.com/users/#{person}/events").empty?
GitHub.count_issues("", is: "pr", repo: repo_full_name, reviewed_by: person, review: "approved", args: args)
end