def METHOD_NAME() -> list[str]:
    """
    Get all branches from the repository.
    """
    out = subprocess.run(  # nosec
        ["git", "branch", "--list", "--format", "%(refname:short)", "-a"],
        capture_output=True,
        check=True,
    )
    return out.stdout.decode().split("\n")