dev-cmd/pr-automerge: skip automerge for "linux to homebrew-core"
This commit is contained in:
parent
6362f3ebbf
commit
c6986122c8
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user