Merge pull request #5753 from reitermarkus/github
Pass additional options to `GitHub.pull_requests`.
This commit is contained in:
commit
e87338ede1
@ -287,8 +287,8 @@ module GitHub
|
|||||||
["admin", "write"].include?(permission(repo, user)["permission"])
|
["admin", "write"].include?(permission(repo, user)["permission"])
|
||||||
end
|
end
|
||||||
|
|
||||||
def pull_requests(repo, base:, state: :open, **_options)
|
def pull_requests(repo, **options)
|
||||||
url = "#{API_URL}/repos/#{repo}/pulls?#{URI.encode_www_form(base: base, state: state)}"
|
url = "#{API_URL}/repos/#{repo}/pulls?#{URI.encode_www_form(options)}"
|
||||||
open_api(url)
|
open_api(url)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user