def github_paginate(session, url):
    """Combines return from GitHub pagination

    :param session: requests client instance
    :param url: start url to get the data from.

    See https://developer.github.com/v3/#pagination
    """
    result = []
    while url:
        r = session.get(url)
        result.extend(r.json())
        next_url = r.links.get('next')
        if next_url:
            url = next_url.get('url')
        else:
            url = None
    return result