Skip to content
Snippets Groups Projects
Commit 5607e4a9 authored by Alexander Bayandin's avatar Alexander Bayandin
Browse files

dev-cmd/pr-automerge: exclude draft PR

parent 34b9fe13
Branches
Tags
No related merge requests found
......@@ -44,7 +44,7 @@ module Homebrew
without_labels = args.without_labels || ["do not merge", "new formula", "automerge-skip", "linux-only"]
tap = Tap.fetch(args.tap || CoreTap.instance.name)
query = "is:pr is:open repo:#{tap.full_name}"
query = "is:pr is:open repo:#{tap.full_name} draft:false"
query += args.ignore_failures? ? " -status:pending" : " status:success"
query += " review:approved" unless args.without_approval?
query += " label:\"#{args.with_label}\"" if args.with_label
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment