bump-cask-pr: fix branch name for versions with colon

Replace commas and colons with hyphens
This commit is contained in:
Seeker 2020-09-15 10:31:40 -07:00
parent 03bba5a66c
commit 584c839dca

View File

@ -193,7 +193,7 @@ module Homebrew
sourcefile_path: cask.sourcefile_path,
old_contents: old_contents,
origin_branch: origin_branch,
branch_name: "bump-#{cask.token}-#{new_version}",
branch_name: "bump-#{cask.token}-#{new_version.tr(",:", "-")}",
commit_message: "Update #{cask.token} from #{old_version} to #{new_version}",
previous_branch: previous_branch,
tap: cask.tap,