pr-automerge: pass --tap arg down

This commit is contained in:
Dawid Dziurla 2020-07-24 18:48:28 +02:00 committed by GitHub
parent 77a1bc22d7
commit 8be563c5cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,9 @@ module Homebrew
end end
if args.publish? if args.publish?
safe_system HOMEBREW_BREW_FILE, "pr-publish", *pr_urls publish_args = ["pr-publish"]
publish_args << "--tap=#{args.tap}" if args.tap
safe_system HOMEBREW_BREW_FILE, *publish_args, *pr_urls
else else
ohai "Now run:", " brew pr-publish \\\n #{pr_urls.join " \\\n "}" ohai "Now run:", " brew pr-publish \\\n #{pr_urls.join " \\\n "}"
end end