From 0fb87af72c5d8fc44c7902baffdbae24f24e393e Mon Sep 17 00:00:00 2001 From: botantony Date: Tue, 24 Jun 2025 16:38:11 +0200 Subject: [PATCH] autobump_constants: split `NO_AUTOBUMP_REASONS_LIST` Signed-off-by: botantony --- Library/Homebrew/autobump_constants.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/autobump_constants.rb b/Library/Homebrew/autobump_constants.rb index 6dfab8de22..baf7ecdf5a 100644 --- a/Library/Homebrew/autobump_constants.rb +++ b/Library/Homebrew/autobump_constants.rb @@ -1,11 +1,15 @@ # typed: strict # frozen_string_literal: true -# TODO: add more reasons here +NO_AUTOBUMP_REASONS_INTERNAL = T.let({ + extract_plist: "livecheck uses `:extract_plist` strategy", + latest_version: "`version` is set to `:latest`", +}.freeze, T::Hash[Symbol, String]) + +# The valid symbols for passing to `no_autobump!` in a `Formula` or `Cask`. +# @api public NO_AUTOBUMP_REASONS_LIST = T.let({ incompatible_version_format: "incompatible version format", bumped_by_upstream: "bumped by upstream", - extract_plist: "livecheck uses `:extract_plist` strategy", - latest_version: "`version` is set to `:latest`", requires_manual_review: "a manual review of this package is required for inclusion in autobump", -}.freeze, T::Hash[Symbol, String]) +}.merge(NO_AUTOBUMP_REASONS_INTERNAL).freeze, T::Hash[Symbol, String])