def is_pending(version, releases):
    """Check if given version is pending (is not released yet) or not.

    :param version: str, version
    :param releases: list, a list with information about fedora releases from Bodhi
    :return: bool, True if given version is a pending release, False otherwise
    """
    for release in releases:
        if release['version'] == version and release['id_prefix'] == 'FEDORA' and release['state'] == 'pending':
            return True
    return False