@@ -12,24 +12,12 @@ module PullRequests
12
12
# @param repo [Integer, String, Hash, Repository] A GitHub repository
13
13
# @param options [Hash] Method options
14
14
# @option options [String] :state `open` or `closed`.
15
- # @overload pull_requests(repo, state, options)
16
- # @deprecated
17
- # @param repo [Integer, String, Hash, Repository] A GitHub repository
18
- # @param state [String] `open` or `closed`.
19
- # @param options [Hash] Method options
20
15
# @return [Array<Sawyer::Resource>] Array of pulls
21
16
# @see https://developer.github.com/v3/pulls/#list-pull-requests
22
17
# @example
23
18
# Octokit.pull_requests('rails/rails', :state => 'closed')
24
- def pull_requests ( *args )
25
- arguments = Arguments . new ( args )
26
- opts = arguments . options
27
- repo = arguments . shift
28
- if state = arguments . shift
29
- octokit_warn "DEPRECATED: Client#pull_requests: Passing state as positional argument is deprecated. Please use :state => '#{ state } '"
30
- opts [ :state ] = state if state
31
- end
32
- paginate "#{ Repository . path repo } /pulls" , opts
19
+ def pull_requests ( repo , options = { } )
20
+ paginate "#{ Repository . path repo } /pulls" , options
33
21
end
34
22
alias :pulls :pull_requests
35
23
0 commit comments