def get_release_type(release):
    """Return the type of the release

    Either 'draft', 'prerelease' (no draft) or 'release' (neither)
    """
    if release['draft']:
        return 'draft'
    if release['prerelease']:
        return 'prerelease'
    return 'release'