diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 50ed3f2ff3..67e0cc6b35 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -829,7 +829,9 @@ module Homebrew next if "#{owner}/#{repo}" == formula.tap.remote_repo || owner == "Homebrew" issue = GitHub::API.open_rest("https://api.github.com/repos/#{owner}/#{repo}/issues/#{id}") - next if issue.blank? || issue["state"] == "open" + next if issue.blank? + next if issue["pull_request"].present? + next if issue["state"] == "open" issue_url = "https://github.com/#{owner}/#{repo}/#{type}/#{id}" problem "Formula refers to a GitHub issue or pull request that is closed: #{issue_url}"