import requests


def get_github_list(base_url):
    """
    Helper to traverse paginated results from the GitHub API.
    Used to retrieve lists of tags and releases.
    """
    results = []
    per_page = 100
    page_number = 1
    while True:
        response = requests.get("%s?per_page=%s&page=%s" %
            (base_url, per_page, page_number)
        )
        response_results = response.json()
        results.extend(response_results)
        page_number += 1
        if len(response_results) < per_page:
            break
    return results