🐛 fixes

This commit is contained in:
Carlo Cabrera 2023-03-28 23:07:03 +08:00
parent 9d6874e745
commit b26d92ca9a
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0
3 changed files with 7 additions and 8 deletions

View File

@ -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."

View File

@ -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)
oh1 "Found `autosquash` label on ##{issue}. Requesting autosquash."
inputs[:autosquash] = true if pr_labels.include?("autosquash")
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?
odie "Pull request URL is for #{user}/#{repo} but `--tap=#{tap.full_name}` was specified!"

View File

@ -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",