[moz] fix: M1 label type/feature→type/feat 对齐仓库实际 label(姜维 Review)
- 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:
@@ -2,7 +2,7 @@ name: 实现任务
|
|||||||
about: 按设计文档实现功能
|
about: 按设计文档实现功能
|
||||||
title: "[moz] impl: "
|
title: "[moz] impl: "
|
||||||
labels:
|
labels:
|
||||||
- type/feature
|
- type/feat
|
||||||
body:
|
body:
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: description
|
id: description
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# issue_assigned(按 Issue label 分 6 路 + infrastructure)
|
# issue_assigned(按 Issue label 分 6 路 + infrastructure)
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
issue_assigned:
|
issue_assigned:
|
||||||
feature:
|
feat:
|
||||||
steps:
|
steps:
|
||||||
- "理解需求(Issue body)→ 如有不明确在 Issue comment 追问"
|
- "理解需求(Issue body)→ 如有不明确在 Issue comment 追问"
|
||||||
- "git checkout main && git pull origin main"
|
- "git checkout main && git pull origin main"
|
||||||
|
|||||||
@@ -1026,13 +1026,15 @@ async def _handle_issues(payload: Dict[str, Any]) -> None:
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# §21 §5 按 type/* label 解析 business_type
|
# §21 §5 按 type/* label 解析 business_type
|
||||||
business_type = "feature" # default
|
business_type = "feat" # default
|
||||||
for lbl in labels_list:
|
for lbl in labels_list:
|
||||||
lbl_lower = lbl.lower()
|
lbl_lower = lbl.lower()
|
||||||
if "bug" in lbl_lower:
|
if "bug" in lbl_lower:
|
||||||
business_type = "bug"
|
business_type = "bug"
|
||||||
elif "impl" in lbl_lower or "feature" in lbl_lower:
|
elif "impl" in lbl_lower:
|
||||||
business_type = "feature" if "feature" in lbl_lower else "impl"
|
business_type = "impl"
|
||||||
|
elif "feat" in lbl_lower:
|
||||||
|
business_type = "feat"
|
||||||
elif "docs" in lbl_lower or "documentation" in lbl_lower:
|
elif "docs" in lbl_lower or "documentation" in lbl_lower:
|
||||||
business_type = "docs"
|
business_type = "docs"
|
||||||
elif "refactor" in lbl_lower:
|
elif "refactor" in lbl_lower:
|
||||||
|
|||||||
Reference in New Issue
Block a user