Skip to content

Commit

Permalink
Merge pull request #576 from nguyen7thai/fix_error_not_paginate_with_…
Browse files Browse the repository at this point in the history
…commit_comments

Fix error not paginate with comment_comments. Auto paginate not working.
  • Loading branch information
pengwynn committed Apr 16, 2015
2 parents bc6ef1b + c9b7f81 commit 17f9e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/octokit/client/commit_comments.rb
Expand Up @@ -12,7 +12,7 @@ module CommitComments
# @return [Array] List of commit comments
# @see https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository
def list_commit_comments(repo, options = {})
get "#{Repository.path repo}/comments", options
paginate "#{Repository.path repo}/comments", options
end

# List comments for a single commit
Expand All @@ -22,7 +22,7 @@ def list_commit_comments(repo, options = {})
# @return [Array] List of commit comments
# @see https://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit
def commit_comments(repo, sha, options = {})
get "#{Repository.path repo}/commits/#{sha}/comments", options
paginate "#{Repository.path repo}/commits/#{sha}/comments", options
end

# Get a single commit comment
Expand Down

0 comments on commit 17f9e89

Please sign in to comment.