From 9092f760fbb071ea78f0e69b367f432178eaf105 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Fri, 23 Feb 2024 12:20:59 -0800 Subject: [PATCH 1/2] dev-cmd/bump: add `--no-fork` switch Signed-off-by: Patrick Linnane --- Library/Homebrew/dev-cmd/bump.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index b84d94b66c716..a12ca2e0cae5b 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -37,6 +37,8 @@ def bump_args 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 @@ def retrieve_and_display_info_and_open_pr(formula_or_cask, name, repositories, a "--message=Created by `brew bump`", ] + bump_cask_pr_args << "--no-fork" if args.no_fork? + system HOMEBREW_BREW_FILE, *bump_cask_pr_args end From 4c73646e362e5ce037e0c8936106f6018b0510a3 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Fri, 23 Feb 2024 12:25:05 -0800 Subject: [PATCH 2/2] Regenerate manpages and completions Signed-off-by: Patrick Linnane --- completions/bash/brew | 1 + completions/fish/brew.fish | 1 + completions/zsh/_brew | 1 + docs/Manpage.md | 2 ++ manpages/brew.1 | 4 ++++ 5 files changed, 9 insertions(+) diff --git a/completions/bash/brew b/completions/bash/brew index 199b50a05d7be..8591f154740a8 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -443,6 +443,7 @@ _brew_bump() { --help --installed --limit + --no-fork --no-pull-requests --open-pr --quiet diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index 9bb4783131db5..6df3972270288 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -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' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index b41aef0d9d476..e4c7bf78e80d7 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -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]' \ diff --git a/docs/Manpage.md b/docs/Manpage.md index 2abe611ece4b5..e72c5cae82c08 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -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`: diff --git a/manpages/brew.1 b/manpages/brew.1 index 69941c531d2f6..fe1d766b5eb25 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -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\. .