[moz] fix: M1 label type/feature→type/feat 对齐仓库实际 label(姜维 Review)
CI / lint (pull_request) Successful in 45s
CI / test (pull_request) Successful in 1m0s
CI / frontend (pull_request) Successful in 27s
CI / notify-on-failure (pull_request) Successful in 1s

- impl.yml: type/feature → type/feat
- toolchain_routes.py: business_type feature→feat(匹配 Gitea label)
- toolchain-templates.yaml: feature→feat
This commit is contained in:
cfdaily
2026-06-20 23:38:43 +08:00
parent bae3244e24
commit 41d60cca2c
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ name: 实现任务
about: 按设计文档实现功能
title: "[moz] impl: "
labels:
- type/feature
- type/feat
body:
- type: textarea
id: description
+1 -1
View File
@@ -6,7 +6,7 @@
# issue_assigned(按 Issue label 分 6 路 + infrastructure
# ---------------------------------------------------------------------------
issue_assigned:
feature:
feat:
steps:
- "理解需求(Issue body)→ 如有不明确在 Issue comment 追问"
- "git checkout main && git pull origin main"
+5 -3
View File
@@ -1026,13 +1026,15 @@ async def _handle_issues(payload: Dict[str, Any]) -> None:
)
else:
# §21 §5 按 type/* label 解析 business_type
business_type = "feature" # default
business_type = "feat" # default
for lbl in labels_list:
lbl_lower = lbl.lower()
if "bug" in lbl_lower:
business_type = "bug"
elif "impl" in lbl_lower or "feature" in lbl_lower:
business_type = "feature" if "feature" in lbl_lower else "impl"
elif "impl" in lbl_lower:
business_type = "impl"
elif "feat" in lbl_lower:
business_type = "feat"
elif "docs" in lbl_lower or "documentation" in lbl_lower:
business_type = "docs"
elif "refactor" in lbl_lower: