github: limit PR search to Homebrew

Not sure whether this is the way you want to handle this problem but
it's really darn irritating so here's a PR that handles it one way.

Fixes: https://github.com/Homebrew/brew/pull/3086#issuecomment-324519156
This commit is contained in:
Dominyk Tiller 2017-08-31 03:59:33 +01:00
parent 156bca7dfb
commit 0ea4da4ef6
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -245,7 +245,7 @@ module GitHub
end end
def print_pull_requests_matching(query) def print_pull_requests_matching(query)
open_or_closed_prs = search_issues(query, type: "pr") open_or_closed_prs = search_issues(query, type: "pr", user: "Homebrew")
open_prs = open_or_closed_prs.select { |i| i["state"] == "open" } open_prs = open_or_closed_prs.select { |i| i["state"] == "open" }
prs = if !open_prs.empty? prs = if !open_prs.empty?