[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user