[PATCH v12 2/6] devtools: add multi-provider AI patch review script

sunyuechi sunyuechi at iscas.ac.cn
Thu Apr 2 06:00:53 CEST 2026


> +        sections = []
> +        for label, review in reviews:
> +            sections.append(f"<h2>{label}</h2>\n{review}")
> +        return "\n<hr>\n".join(sections)
> +    elif output_format == "markdown":
> +        sections = []
> +        for label, review in reviews:
> +            sections.append(f"## {label}\n\n{review}")
> +        return "\n\n---\n\n".join(sections)
> +    else:  # text
> +        sections = []
> +        for label, review in reviews:
> +            sections.append(f"=== {label} ===\n\n{review}")
> +        return "\n\n" + "=" * 60 + "\n\n".join(sections)
> +

return ("\n\n" + "=" * 60 + "\n\n").join(sections)



More information about the dev mailing list