@@ -12,24 +12,12 @@ module PullRequests
1212 # @param repo [Integer, String, Hash, Repository] A GitHub repository
1313 # @param options [Hash] Method options
1414 # @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
2015 # @return [Array<Sawyer::Resource>] Array of pulls
2116 # @see https://developer.github.com/v3/pulls/#list-pull-requests
2217 # @example
2318 # 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
3321 end
3422 alias :pulls :pull_requests
3523
0 commit comments