Merge pull request #19854 from botantony/autobump-fix

tap: fix autobump logic for unofficial taps
This commit is contained in:
Bevan Kay 2025-04-30 07:21:14 +00:00 committed by GitHub
commit f3a418a917
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -987,8 +987,10 @@ class Tap
def autobump
autobump_packages = if core_cask_tap?
Homebrew::API::Cask.all_casks
else
elsif core_tap?
Homebrew::API::Formula.all_formulae
else
{}
end
@autobump ||= autobump_packages.select do |_, p|

View File

@ -17,6 +17,7 @@ module Homebrew
@tap_style_exceptions = tap.style_exceptions
@tap_pypi_formula_mappings = tap.pypi_formula_mappings
@tap_autobump = tap.autobump
@tap_official = tap.official?
@problems = []
@cask_tokens = tap.cask_tokens.map do |cask_token|
@ -54,8 +55,8 @@ module Homebrew
check_formula_list_directory "audit_exceptions", @tap_audit_exceptions
check_formula_list_directory "style_exceptions", @tap_style_exceptions
check_formula_list "pypi_formula_mappings", @tap_pypi_formula_mappings
check_formula_list ".github/autobump.txt", @tap_autobump
check_formula_list "formula_renames", @formula_renames.values
check_formula_list ".github/autobump.txt", @tap_autobump unless @tap_official
end
sig { void }