Merge pull request #8110 from dawidd6/with-label

pr-automerge: fix variable name
This commit is contained in:
Dawid Dziurla 2020-07-27 23:21:22 +02:00 committed by GitHub
commit fddeceda3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ module Homebrew
query = "is:pr is:open repo:#{tap.full_name}"
query += Homebrew.args.ignore_failures? ? " -status:pending" : " status:success"
query += " review:approved" unless Homebrew.args.without_approval?
query += " label:\"#{with_label}\"" if Homebrew.args.with_label
query += " label:\"#{args.with_label}\"" if Homebrew.args.with_label
without_labels&.each { |label| query += " -label:\"#{label}\"" }
odebug "Searching: #{query}"