dev-cmd/bump: add --no-fork switch

Signed-off-by: Patrick Linnane <patrick@linnane.io>
This commit is contained in:
Patrick Linnane 2024-02-23 12:20:59 -08:00
parent 1d614fc027
commit 9092f760fb
No known key found for this signature in database

View File

@ -37,6 +37,8 @@ module Homebrew
description: "Check only casks."
switch "--installed",
description: "Check formulae and casks that are currently installed."
switch "--no-fork",
description: "Don't try to fork the repository."
switch "--open-pr",
description: "Open a pull request for the new version if none have been opened yet."
flag "--limit=",
@ -509,6 +511,8 @@ module Homebrew
"--message=Created by `brew bump`",
]
bump_cask_pr_args << "--no-fork" if args.no_fork?
system HOMEBREW_BREW_FILE, *bump_cask_pr_args
end