dev-cmd/pr-automerge: skip automerge for "linux to homebrew-core"

This commit is contained in:
Bo Anderson 2021-03-26 11:06:40 +00:00
parent 6362f3ebbf
commit c6986122c8
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -21,7 +21,8 @@ module Homebrew
description: "Pull requests must have this label." description: "Pull requests must have this label."
comma_array "--without-labels", comma_array "--without-labels",
description: "Pull requests must not have these labels (default: "\ description: "Pull requests must not have these labels (default: "\
"`do not merge`, `new formula`, `automerge-skip`, `linux-only`)." "`do not merge`, `new formula`, `automerge-skip`, `linux-only`, "\
"`linux to homebrew-core`)."
switch "--without-approval", switch "--without-approval",
description: "Pull requests do not require approval to be merged." description: "Pull requests do not require approval to be merged."
switch "--publish", switch "--publish",
@ -39,7 +40,13 @@ module Homebrew
def pr_automerge def pr_automerge
args = pr_automerge_args.parse args = pr_automerge_args.parse
without_labels = args.without_labels || ["do not merge", "new formula", "automerge-skip", "linux-only"] without_labels = args.without_labels || [
"do not merge",
"new formula",
"automerge-skip",
"linux-only",
"linux to homebrew-core",
]
tap = Tap.fetch(args.tap || CoreTap.instance.name) tap = Tap.fetch(args.tap || CoreTap.instance.name)
query = "is:pr is:open repo:#{tap.full_name} draft:false" query = "is:pr is:open repo:#{tap.full_name} draft:false"