class Pronto::BitbucketServer
def pull_comments(sha)
def pull_comments(sha) @comment_cache["#{pull_id}/#{sha}"] ||= begin client.pull_comments(slug, pull_id).map do |comment| anchor = comment['commentAnchor'] if anchor Comment.new(sha, comment['comment']['text'], anchor['path'], anchor['line']) end end.compact end end