'Combines return from GitHub pagination
:param url: start url to get the data from.
See https://developer.github.com/v3/#pagination'

def paginate(self, url):

    resp = self.get_session().get(url)
    result = resp.json()
    next_url = resp.links.get('next', {}).get('url')
    if next_url:
        result.extend(self.paginate(next_url))
    return result
