pr-automerge: allow users to specify a workflow for pr-publish

This commit is contained in:
Sean Molenaar 2022-04-25 20:29:35 +02:00
parent 968366696b
commit 05eafa5cac
No known key found for this signature in database
GPG Key ID: 6BF5D8DF0D34FAAE

View File

@ -17,6 +17,8 @@ module Homebrew
EOS
flag "--tap=",
description: "Target tap repository (default: `homebrew/core`)."
flag "--workflow=",
description: "Workflow file to use with `brew pr-publish`."
flag "--with-label=",
description: "Pull requests must have this label."
comma_array "--without-labels",
@ -68,6 +70,7 @@ module Homebrew
publish_args = ["pr-publish"]
publish_args << "--tap=#{tap}" if tap
publish_args << "--workflow=#{args.workflow}" if args.workflow
publish_args << "--no-autosquash" if args.no_autosquash?
if args.publish?
safe_system HOMEBREW_BREW_FILE, *publish_args, *pr_urls