diff --git a/src/daemon/toolchain_handler.py b/src/daemon/toolchain_handler.py index 201b836..9ae18e4 100644 --- a/src/daemon/toolchain_handler.py +++ b/src/daemon/toolchain_handler.py @@ -166,6 +166,19 @@ class ToolchainApiSection: "", "⚠️ 不要使用 Mail API(飞鸽传书)。所有协作通过 Gitea 留痕。", "", + "### 提交 PR Review", + "", + "如果步骤中要求提交 Review(审查 PR):", + "```bash", + f'curl -s -X POST "{_GITEA_BASE}/repos/{{repo}}/pulls/{{pr_number}}/reviews" \\', + ' -H "Authorization: token " \\', + ' -H "Content-Type: application/json" \\', + ' -d \'{"event": "approved", "body": "审查结论"}\'', + "```", + "", + "event 可选:approved(通过)/ request_changes(驳回)", + "⚠️ 必须用 Review API 提交,不要在 PR comment 中写 Review。", + "", "### 需要创建 Issue 时", "", "如果步骤中要求创建 Issue 指派他人(如 jiangwei-infra):",