Merge pull request #11410 from WingLim/develop

feat: add branch param
This commit is contained in:
Mike McQuaid 2021-05-19 12:02:01 +01:00 committed by GitHub
commit d983c4291d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,8 @@ module Homebrew
switch "--autosquash", switch "--autosquash",
description: "If supported on the target tap, automatically reformat and reword commits "\ description: "If supported on the target tap, automatically reformat and reword commits "\
"in the pull request to our preferred format." "in the pull request to our preferred format."
flag "--branch=",
description: "Branch to publish to (default: `master`)."
flag "--message=", flag "--message=",
depends_on: "--autosquash", depends_on: "--autosquash",
description: "Message to include when autosquashing revision bumps, deletions, and rebuilds." description: "Message to include when autosquashing revision bumps, deletions, and rebuilds."
@ -36,7 +38,7 @@ module Homebrew
tap = Tap.fetch(args.tap || CoreTap.instance.name) tap = Tap.fetch(args.tap || CoreTap.instance.name)
workflow = args.workflow || "publish-commit-bottles.yml" workflow = args.workflow || "publish-commit-bottles.yml"
ref = "master" ref = args.branch || "master"
extra_args = [] extra_args = []
extra_args << "--autosquash" if args.autosquash? extra_args << "--autosquash" if args.autosquash?