audit: Remove call to deprecated created_pr_comment method
``` ➜ brew audit --online --new-formula --verbose turbogit turbogit: * GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars) * GitHub repository too new (<30 days old) Error: undefined local variable or method `created_pr_comment' for Homebrew:Module /usr/local/Homebrew/Library/Homebrew/dev-cmd/audit.rb:148:in `audit' /usr/local/Homebrew/Library/Homebrew/brew.rb:110:in `<main>' ``` - This was removed in 4f75a77b089e65ff9e03c65d192808aa4ea6842f. We can't post PR comments from GitHub Actions CI from forks.
This commit is contained in:
parent
0cced8e7bd
commit
d14eed6cec
@ -144,10 +144,7 @@ module Homebrew
|
||||
errors_summary = "#{problem_plural} in #{formula_plural} detected"
|
||||
errors_summary += ", #{corrected_problem_plural} corrected" if corrected_problem_count.positive?
|
||||
|
||||
if problem_count.positive? ||
|
||||
(new_formula_problem_count.positive? && !created_pr_comment)
|
||||
ofail errors_summary
|
||||
end
|
||||
ofail errors_summary if problem_count.positive? || new_formula_problem_count.positive?
|
||||
end
|
||||
|
||||
def format_problem_lines(problems)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user