bump-cask-pr: use version substring before comma unless they match

This commit is contained in:
fn ⌃ ⌥ 2021-11-08 10:07:27 -08:00
parent e38e25dfd1
commit 7f292fc7d0

View File

@ -173,6 +173,10 @@ module Homebrew
branch_name = "bump-#{cask.token}"
commit_message = "Update #{cask.token}"
if new_version.present?
if new_version.before_comma != old_version.before_comma
new_version = new_version.before_comma
old_version = old_version.before_comma
end
branch_name += "-#{new_version.tr(",:", "-")}"
commit_message += " from #{old_version} to #{new_version}"
end