def get_latest_release(repo):
    # Again this implementation assumes inner workings of PyGithub because the
    # API isn't implemented yet in PyGithub.
    headers, data = repo._requester.requestJsonAndCheck(
        "GET",
        repo.url + "/releases/latest"
    )
    return headers, data
Get the latest release for a repo, or throw an error if no releases exist.
dataset/ETHPy150Open adafruit/Arduino_Library_Github_Tools/create_releases.py/get_latest_release