dev-cmd/bump: hide version syncing when empty list

This commit is contained in:
Michael Cho 2024-02-28 14:41:39 -05:00
parent 262912e6a6
commit 387bfd972e
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -472,10 +472,13 @@ module Homebrew
if formula_or_cask.is_a?(Formula) if formula_or_cask.is_a?(Formula)
require "formula_auditor" require "formula_auditor"
auditor = FormulaAuditor.new(formula_or_cask) auditor = FormulaAuditor.new(formula_or_cask)
puts <<~EOS if auditor.synced_with_other_formulae? if auditor.synced_with_other_formulae?
Version syncing: #{title_name} version should be kept in sync with outdated_synced_formulae = synced_with(auditor, formula_or_cask, new_version.general)
#{synced_with(auditor, formula_or_cask, new_version.general).join(", ")}. puts <<~EOS if outdated_synced_formulae.present?
EOS Version syncing: #{title_name} version should be kept in sync with
#{outdated_synced_formulae.join(", ")}.
EOS
end
end end
puts <<~EOS unless args.no_pull_requests? puts <<~EOS unless args.no_pull_requests?
Open pull requests: #{open_pull_requests || "none"} Open pull requests: #{open_pull_requests || "none"}