class BitbucketClient

def commit_comments(slug, sha)

def commit_comments(slug, sha)
  response = get("/#{slug}/commit/#{sha}/comments?pagelen=100")
  result = parse_comments(openstruct(response))
  while (response['next'])
    response = get response['next']
    result.concat(parse_comments(openstruct(response)))
  end
  result
end