pr-publish: request a large runner for appropriately labelled PRs

This will make it easier to merge PRs that require the large runner to
upload the built bottles.
This commit is contained in:
Carlo Cabrera 2023-06-27 20:06:35 +08:00
parent 3a813c30f3
commit bc6e88d45c
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -64,6 +64,10 @@ module Homebrew
oh1 "Found `autosquash` label on ##{issue}. Requesting autosquash."
inputs[:autosquash] = true
end
if pr_labels.include?("large-bottle-upload")
oh1 "Found `large-bottle-upload` label on ##{issue}. Requesting upload on large runner."
inputs[:large_runner] = 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!"