From e9c45ff17b406bed50677b5b5eb04d9422343f27 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 16 Feb 2019 11:30:49 +0100 Subject: [PATCH] Pass additional options to `GitHub.pull_requests`. --- Library/Homebrew/utils/github.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index e143e9163e..778eb5bcae 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -287,8 +287,8 @@ module GitHub ["admin", "write"].include?(permission(repo, user)["permission"]) end - def pull_requests(repo, base:, state: :open, **_options) - url = "#{API_URL}/repos/#{repo}/pulls?#{URI.encode_www_form(base: base, state: state)}" + def pull_requests(repo, **options) + url = "#{API_URL}/repos/#{repo}/pulls?#{URI.encode_www_form(options)}" open_api(url) end