mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
🐛 fixes
This commit is contained in:
parent
9d6874e745
commit
b26d92ca9a
@ -33,8 +33,7 @@ module Homebrew
|
|||||||
"in the pull request to the preferred format."
|
"in the pull request to the preferred format."
|
||||||
switch "--no-autosquash",
|
switch "--no-autosquash",
|
||||||
description: "Instruct `brew pr-publish` to skip automatically reformatting and rewording commits " \
|
description: "Instruct `brew pr-publish` to skip automatically reformatting and rewording commits " \
|
||||||
"in the pull request to the preferred format.",
|
"in the pull request to the preferred format."
|
||||||
replacement: "`--autosquash` to opt in"
|
|
||||||
switch "--ignore-failures",
|
switch "--ignore-failures",
|
||||||
description: "Include pull requests that have failing status checks."
|
description: "Include pull requests that have failing status checks."
|
||||||
|
|
||||||
|
@ -23,8 +23,7 @@ module Homebrew
|
|||||||
"to our preferred format."
|
"to our preferred format."
|
||||||
switch "--no-autosquash",
|
switch "--no-autosquash",
|
||||||
description: "Skip automatically reformatting and rewording commits in the pull request " \
|
description: "Skip automatically reformatting and rewording commits in the pull request " \
|
||||||
"to the preferred format, even if supported on the target tap.",
|
"to the preferred format, even if supported on the target tap."
|
||||||
replacement: "`--autosquash` to opt in"
|
|
||||||
switch "--large-runner",
|
switch "--large-runner",
|
||||||
description: "Run the upload job on a large runner."
|
description: "Run the upload job on a large runner."
|
||||||
flag "--branch=",
|
flag "--branch=",
|
||||||
@ -68,8 +67,10 @@ module Homebrew
|
|||||||
inputs[:pull_request] = issue
|
inputs[:pull_request] = issue
|
||||||
|
|
||||||
pr_labels = GitHub.pull_request_labels(user, repo, issue)
|
pr_labels = GitHub.pull_request_labels(user, repo, issue)
|
||||||
oh1 "Found `autosquash` label on ##{issue}. Requesting autosquash."
|
if pr_labels.include?("autosquash")
|
||||||
inputs[:autosquash] = true if pr_labels.include?("autosquash")
|
oh1 "Found `autosquash` label on ##{issue}. Requesting autosquash."
|
||||||
|
inputs[:autosquash] = true
|
||||||
|
end
|
||||||
|
|
||||||
if args.tap.present? && !T.must("#{user}/#{repo}".casecmp(tap.full_name)).zero?
|
if args.tap.present? && !T.must("#{user}/#{repo}".casecmp(tap.full_name)).zero?
|
||||||
odie "Pull request URL is for #{user}/#{repo} but `--tap=#{tap.full_name}` was specified!"
|
odie "Pull request URL is for #{user}/#{repo} but `--tap=#{tap.full_name}` was specified!"
|
||||||
|
@ -36,8 +36,7 @@ module Homebrew
|
|||||||
"preferred format."
|
"preferred format."
|
||||||
switch "--no-autosquash",
|
switch "--no-autosquash",
|
||||||
description: "Skip automatically reformatting and rewording commits in the pull request to our " \
|
description: "Skip automatically reformatting and rewording commits in the pull request to our " \
|
||||||
"preferred format.",
|
"preferred format."
|
||||||
replacement: "`--autosquash` to opt in"
|
|
||||||
switch "--branch-okay",
|
switch "--branch-okay",
|
||||||
description: "Do not warn if pulling to a branch besides the repository default (useful for testing)."
|
description: "Do not warn if pulling to a branch besides the repository default (useful for testing)."
|
||||||
switch "--resolve",
|
switch "--resolve",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user