docs(docs): 记录提交信息 scope 规则

要求提交标题统一使用 type(scope): 中文说明,并在开发指南和贡献指南中补充示例。
This commit is contained in:
2026-07-15 21:28:22 +08:00
parent b4b4f25cb3
commit 0d07b9f4ce
2 changed files with 20 additions and 14 deletions
+9 -6
View File
@@ -20,15 +20,18 @@
提交信息使用 Conventional Commits
- `feat:` 新功能
- `fix:` 修复 bug
- `docs:` 文档更新
- `test:` 测试或 fixture 更新
- `refactor:` 不改变行为的重构
- `chore:` 构建、依赖或辅助工具调整
- 必须使用 `type(scope): 中文说明` 格式。
- `type` 使用 `feat``fix``docs``test``refactor``chore` 等 Conventional Commits 类型。
- `scope` 必须写具体模块或文档域,例如 `ffi``docs``cli``cas``official-sync`
提交说明默认使用简体中文。代码标识符和协议字段仍使用英文。
示例:
- `feat(cli): 添加 doctor 命令骨架`
- `fix(docs): 修正官方同步运行说明`
- `refactor(ffi): 降级 FFI 为可选兼容层`
## 验证要求
基础验证命令见 `docs/guides/development.md`。常用最低门禁: