From ddcb0519b6740eb4147e7520de424e895c0318bc Mon Sep 17 00:00:00 2001 From: WingLim <643089849@qq.com> Date: Wed, 19 May 2021 18:06:21 +0800 Subject: [PATCH 1/2] feat: add branch param --- Library/Homebrew/dev-cmd/pr-publish.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/pr-publish.rb b/Library/Homebrew/dev-cmd/pr-publish.rb index 4f068d7ad6..b976d8a107 100644 --- a/Library/Homebrew/dev-cmd/pr-publish.rb +++ b/Library/Homebrew/dev-cmd/pr-publish.rb @@ -19,6 +19,8 @@ module Homebrew switch "--autosquash", description: "If supported on the target tap, automatically reformat and reword commits "\ "in the pull request to our preferred format." + flag "--branch=", + description: "Branch to publish (default: `master`)." flag "--message=", depends_on: "--autosquash", 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) workflow = args.workflow || "publish-commit-bottles.yml" - ref = "master" + ref = args.branch || "master" extra_args = [] extra_args << "--autosquash" if args.autosquash? From 2bd71ffb3083223844fa4ebd76c76d632cc24ce2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 19 May 2021 11:36:59 +0100 Subject: [PATCH 2/2] /dev-cmd/pr-publish: tweak wording. Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> --- Library/Homebrew/dev-cmd/pr-publish.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/pr-publish.rb b/Library/Homebrew/dev-cmd/pr-publish.rb index b976d8a107..c13ad95a6d 100644 --- a/Library/Homebrew/dev-cmd/pr-publish.rb +++ b/Library/Homebrew/dev-cmd/pr-publish.rb @@ -20,7 +20,7 @@ module Homebrew description: "If supported on the target tap, automatically reformat and reword commits "\ "in the pull request to our preferred format." flag "--branch=", - description: "Branch to publish (default: `master`)." + description: "Branch to publish to (default: `master`)." flag "--message=", depends_on: "--autosquash", description: "Message to include when autosquashing revision bumps, deletions, and rebuilds."