def get_release():
    github_url = ("https://api.github.com/repos/syncthing/"
                  "syncthing/releases?per_page=1")
    res = urlopen(github_url)
    if not res:
        return ""
    res = res.read().decode()
    res = json.loads(res)
    if res[0]['prerelease'] is False:
        return res[0]['name'] or res[0]['tag_name']
    else:
        print("Prerelease found. No changes made")
        return ""
Decorator for reduction methods.
dataset/ETHPy150Open firecat53/dockerfiles/syncthing/update_release.py/get_release--crossover with--dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/openstack/common/policy.py/reducer