summaryrefslogtreecommitdiff
path: root/lib/bitbucket/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket/client.rb')
-rw-r--r--lib/bitbucket/client.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bitbucket/client.rb b/lib/bitbucket/client.rb
index 9fa44506374..3457c2c6454 100644
--- a/lib/bitbucket/client.rb
+++ b/lib/bitbucket/client.rb
@@ -13,11 +13,9 @@ module Bitbucket
def issue_comments(repo, issue_id)
path = "/repositories/#{repo}/issues/#{issue_id}/comments"
- paginator = Paginator.new(connection, path, :url)
+ paginator = Paginator.new(connection, path, :comment)
- Collection.new(paginator).map do |comment_url|
- Representation::Comment.new(connection.get(comment_url.to_s))
- end
+ Collection.new(paginator)
end
def pull_requests(repo)