'Recursively combine results from Bitbucket pagination
:param url: start url to get the data from.'

def paginate(self, url):

    resp = self.get_session().get(url)
    data = resp.json()
    results = data.get('values', [])
    next_url = data.get('next')
    if next_url:
        results.extend(self.paginate(next_url))
    return results
