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

sunyuechi
2026-04-02T04:00:58Z

> + sections = []
> + for label, review in reviews:
> + sections.append(f" {label} \n{review}")
> + return "\n \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)