Merge pull request #16740 from Homebrew/bump-no-fork

This commit is contained in:
Patrick Linnane 2024-02-23 12:42:28 -08:00 committed by GitHub
commit b1fbd59479
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 13 additions and 0 deletions

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

View File

@ -443,6 +443,7 @@ _brew_bump() {
--help
--installed
--limit
--no-fork
--no-pull-requests
--open-pr
--quiet

View File

@ -383,6 +383,7 @@ __fish_brew_complete_arg 'bump' -l full-name -d 'Print formulae/casks with fully
__fish_brew_complete_arg 'bump' -l help -d 'Show this message'
__fish_brew_complete_arg 'bump' -l installed -d 'Check formulae and casks that are currently installed'
__fish_brew_complete_arg 'bump' -l limit -d 'Limit number of package results returned'
__fish_brew_complete_arg 'bump' -l no-fork -d 'Don\'t try to fork the repository'
__fish_brew_complete_arg 'bump' -l no-pull-requests -d 'Do not retrieve pull requests from GitHub'
__fish_brew_complete_arg 'bump' -l open-pr -d 'Open a pull request for the new version if none have been opened yet'
__fish_brew_complete_arg 'bump' -l quiet -d 'Make some output more quiet'

View File

@ -498,6 +498,7 @@ _brew_bump() {
'--help[Show this message]' \
'--installed[Check formulae and casks that are currently installed]' \
'--limit[Limit number of package results returned]' \
'--no-fork[Don'\''t try to fork the repository]' \
'(--open-pr)--no-pull-requests[Do not retrieve pull requests from GitHub]' \
'(--no-pull-requests)--open-pr[Open a pull request for the new version if none have been opened yet]' \
'--quiet[Make some output more quiet]' \

View File

@ -1031,6 +1031,8 @@ formulae, also displays whether a pull request has been opened with the URL.
Check only casks.
* `--installed`:
Check formulae and casks that are currently installed.
* `--no-fork`:
Don't try to fork the repository.
* `--open-pr`:
Open a pull request for the new version if none have been opened yet.
* `--limit`:

View File

@ -1461,6 +1461,10 @@ Check only casks\.
Check formulae and casks that are currently installed\.
.
.TP
\fB\-\-no\-fork\fR
Don\'t try to fork the repository\.
.
.TP
\fB\-\-open\-pr\fR
Open a pull request for the new version if none have been opened yet\.
.