diff --git a/.gitea/ISSUE_TEMPLATE/impl.yml b/.gitea/ISSUE_TEMPLATE/impl.yml index f985e10..cfed43c 100644 --- a/.gitea/ISSUE_TEMPLATE/impl.yml +++ b/.gitea/ISSUE_TEMPLATE/impl.yml @@ -2,7 +2,7 @@ name: 实现任务 about: 按设计文档实现功能 title: "[moz] impl: " labels: - - type/feature + - type/feat body: - type: textarea id: description diff --git a/config/toolchain-templates.yaml b/config/toolchain-templates.yaml index 8798382..5bc407d 100644 --- a/config/toolchain-templates.yaml +++ b/config/toolchain-templates.yaml @@ -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" diff --git a/src/api/toolchain_routes.py b/src/api/toolchain_routes.py index 1af4604..f56586b 100644 --- a/src/api/toolchain_routes.py +++ b/src/api/toolchain_routes.py @@ -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: