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