Skip to content

Commit

Permalink
Merge pull request #335 from pedro/pedro-paginate-pulls
Browse files Browse the repository at this point in the history
Paginate pull requests too
  • Loading branch information
pengwynn committed Nov 6, 2013
2 parents aa05d5d + 20e2115 commit 7f6a5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octokit/client/pull_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module PullRequests
# Octokit.pull_requests('rails/rails')
def pull_requests(repo, state = nil, options = {})
options[:state] = state if state
get "repos/#{Repository.new(repo)}/pulls", options
paginate "repos/#{Repository.new(repo)}/pulls", options
end
alias :pulls :pull_requests

Expand Down

0 comments on commit 7f6a5d4

Please sign in to comment.