Skip to content

Commit

Permalink
Merge pull request #543 from gylaz/paginate-pr-comments
Browse files Browse the repository at this point in the history
Use paginate to fetch specific PR comments
  • Loading branch information
pengwynn committed Dec 10, 2014
2 parents 77d1cb4 + 40966cb commit dd8d32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octokit/client/pull_requests.rb
Expand Up @@ -181,7 +181,7 @@ def pull_requests_comments(repo, options = {})
# @return [Array<Sawyer::Resource>] List of comments
def pull_request_comments(repo, number, options = {})
# return the comments for a pull request
get "#{Repository.path repo}/pulls/#{number}/comments", options
paginate("#{Repository.path repo}/pulls/#{number}/comments", options)
end
alias :pull_comments :pull_request_comments
alias :review_comments :pull_request_comments
Expand Down

0 comments on commit dd8d32c

Please sign in to comment.