diff --git a/Library/Homebrew/dev-cmd/contributions.rb b/Library/Homebrew/dev-cmd/contributions.rb index 9ffb3a8393..ebad7138c9 100755 --- a/Library/Homebrew/dev-cmd/contributions.rb +++ b/Library/Homebrew/dev-cmd/contributions.rb @@ -209,6 +209,9 @@ module Homebrew def count_reviews(repo_full_name, person, args) GitHub.count_issues("", is: "pr", repo: repo_full_name, reviewed_by: person, review: "approved", args: args) rescue GitHub::API::ValidationFailedError + if args.verbose? + onoe "Couldn't search GitHub for PRs by #{person}. Their profile might be private. Defaulting to 0." + end 0 # Users who have made their contributions private are not searchable to determine counts. end end