21
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
zpc 2026-04-03 11:24:56 +08:00
parent 8e552ef6b5
commit 690d2b1a5c

View File

@ -0,0 +1,35 @@
---
inclusion: auto
---
# Git Commit Message 语言规则(强制)
所有生成的 Git commit message 必须使用中文。这是一条强制规则,适用于所有场景,包括但不限于:
- 用户在聊天中请求生成 commit message
- 自动生成提交信息
- 任何涉及 git commit 描述的场景
## 格式要求
- 标题格式:`<type>(<scope>): <中文描述>`
- type 保留英文关键字feat、fix、refactor、chore、docs、style、perf、test、ci、build
- scope 使用中文描述模块名
- 标题的描述部分必须使用中文
- 正文body部分必须使用中文
- 每条变更说明以 `- ` 开头,使用中文描述
- 禁止在描述和正文中使用英文句子
## 示例
```
feat(光缆故障): 重构导出逻辑增加计算字段与增强UI展示
- 将导出数据转换逻辑从Controller层移至Service层优化职责分离
- 为导出DTO添加Excel列名属性实现声明式列映射
- 导出前在实体上填充计算字段
- 增强表格中故障次数展示
```
## 重要提醒
当你被要求生成 commit message 或 generate commit message 时,无论用户使用什么语言提问,输出的 commit message 内容必须是中文。