[moz] impl(§17): issue_assigned steps git 操作具体化 + ToolchainApiSection Git 说明
改动 1: issue_assigned 编码路径 steps 改为具体 git 命令 (checkout main → pull → checkout -b → add/commit → push) 改动 2: ToolchainApiSection 新增 Git 操作说明段落(含开发目录路径) 改动 3: 测试更新(issue_assigned 断言 + 3 个 Git 说明测试) 466 passed
This commit is contained in:
@@ -1032,10 +1032,10 @@ async def _handle_issues(payload: Dict[str, Any]) -> None:
|
||||
event_type="issue_assigned",
|
||||
action_type="issue_assigned",
|
||||
steps=[
|
||||
f"创建分支 fix/{issue_number}-{brief}",
|
||||
f"在开发目录执行 git 操作:\n a. git checkout main && git pull origin main\n b. git checkout -b fix/{issue_number}-{brief}",
|
||||
"编码 + 写 UT",
|
||||
"push → 等 CI",
|
||||
f"CI 通过后创建 PR(Gitea API: POST /repos/{repo}/pulls)",
|
||||
f"git add -A && git commit -m \"[moz] fix: {issue_title[:30]}\" && git push origin fix/{issue_number}-{brief}",
|
||||
f"CI 通过后创建 PR(Gitea API: POST /repos/{repo}/pulls,head: fix/{issue_number}-{brief}, base: main)",
|
||||
"等 Review",
|
||||
"提交 action report(POST http://localhost:8083/api/projects/_toolchain/tasks/<task_id>/comments,comment_type=action_report)",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user