diff options
author | Valery Sizov <valery@gitlab.com> | 2016-12-07 14:00:06 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-12-07 14:00:06 +0200 |
commit | b12d6541835024eb74384551b84bf0e74747d0c3 (patch) | |
tree | cde3a9635d616f20bf8c747221d475e0c852b86b /lib/bitbucket/client.rb | |
parent | 67b7637e5d7d3cf3e3f5cde6e7f984ece368c48c (diff) | |
download | gitlab-ce-b12d6541835024eb74384551b84bf0e74747d0c3.tar.gz |
BitBuckpet importer. Refactoring. Iteration 2
Diffstat (limited to 'lib/bitbucket/client.rb')
-rw-r--r-- | lib/bitbucket/client.rb | 6 |
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) |