[moz] fix(handler): ToolchainApiSection 补充 Gitea Review API curl 指引 #102

Merged
pangtong-fujunshi merged 1 commits from fix/toolchain-review-api-guidance into main 2026-06-20 11:28:49 +00:00
+13
View File
@@ -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 <your-token>" \\',
' -H "Content-Type: application/json" \\',
' -d \'{"event": "approved", "body": "审查结论"}\'',
"```",
"",
"event 可选:approved(通过)/ request_changes(驳回)",
"⚠️ 必须用 Review API 提交,不要在 PR comment 中写 Review。",
"",
"### 需要创建 Issue 时",
"",
"如果步骤中要求创建 Issue 指派他人(如 jiangwei-infra):",