pr-automerge: fix variable name

This commit is contained in:
Dawid Dziurla 2020-07-27 22:39:54 +02:00
parent 5c87a909ea
commit 367de3523a
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

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}"