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."
|
||||
switch "--no-autosquash",
|
||||
description: "Instruct `brew pr-publish` to skip automatically reformatting and rewording commits " \
|
||||
"in the pull request to the preferred format.",
|
||||
replacement: "`--autosquash` to opt in"
|
||||
"in the pull request to the preferred format."
|
||||
switch "--ignore-failures",
|
||||
description: "Include pull requests that have failing status checks."
|
||||
|
||||
|
@ -23,8 +23,7 @@ module Homebrew
|
||||
"to our preferred format."
|
||||
switch "--no-autosquash",
|
||||
description: "Skip automatically reformatting and rewording commits in the pull request " \
|
||||
"to the preferred format, even if supported on the target tap.",
|
||||
replacement: "`--autosquash` to opt in"
|
||||
"to the preferred format, even if supported on the target tap."
|
||||
switch "--large-runner",
|
||||
description: "Run the upload job on a large runner."
|
||||
flag "--branch=",
|
||||
@ -68,8 +67,10 @@ module Homebrew
|
||||
inputs[:pull_request] = issue
|
||||
|
||||
pr_labels = GitHub.pull_request_labels(user, repo, issue)
|
||||
if pr_labels.include?("autosquash")
|
||||
oh1 "Found `autosquash` label on ##{issue}. Requesting autosquash."
|
||||
inputs[:autosquash] = true if pr_labels.include?("autosquash")
|
||||
inputs[:autosquash] = true
|
||||
end
|
||||
|
||||
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!"
|
||||
|
@ -36,8 +36,7 @@ module Homebrew
|
||||
"preferred format."
|
||||
switch "--no-autosquash",
|
||||
description: "Skip automatically reformatting and rewording commits in the pull request to our " \
|
||||
"preferred format.",
|
||||
replacement: "`--autosquash` to opt in"
|
||||
"preferred format."
|
||||
switch "--branch-okay",
|
||||
description: "Do not warn if pulling to a branch besides the repository default (useful for testing)."
|
||||
switch "--resolve",
|
||||
|
Loading…
x
Reference in New Issue
Block a user