def get_version(diff_file, ix=True):
    """Determine the product version from the diff file name.
    param ix denotes if the diff file was generated by APIx or CLIx
    """
    split_ver = diff_file.split("/")[-1].split("-")
    if "-comp.yaml" in diff_file:
        return split_ver[0]
    else:
        return f"{split_ver[0]}-to{split_ver[2]}"