feat(asset-query): 优化固资快照与请假分流能力
This commit is contained in:
1 parent
873331dd20
commit
f9b04eddc8
7 files changed
+59
-17
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,7 +6,7 @@
|
||||
|
||||
- 一个提交只做一件事(或同一类紧密相关的事)。
|
||||
- 提交信息要让不了解上下文的人也能快速理解“改了什么、为什么改”。
|
||||
- **`type` 与 `scope` 使用英文**;**`subject` 与 `body` 使用中文**,便于团队阅读且 scope 与代码模块一一对应。
|
||||
- **`type`** **与** **`scope`** **使用英文**;**`subject`** **与** **`body`** **使用中文**,便于团队阅读且 scope 与代码模块一一对应。
|
||||
- 所有人遵循同一格式,减少代码评审和回溯成本。
|
||||
|
||||
## 2. 标准格式(必须)
|
||||
@@ -79,20 +79,20 @@ Scope 应对齐代码模块,便于从提交信息定位到目录。选取规
|
||||
2. 目录名转 kebab-case:`shipping_notice` → `shipping-notice`,`rohs_check` → `rohs-check`。
|
||||
3. 跨模块改动选影响最大的模块;纯基建用 `jenkins`、`migration`、`deps`、`ci` 等。
|
||||
|
||||
| scope | 典型目录/模块 |
|
||||
| --- | --- |
|
||||
| `schedule` | `services/schedule/`、`api/schedule_admin`、前端 `features/admin/modules/schedules/` |
|
||||
| `shipping-notice` | `services/shipping_notice/`、`api/workspace_shipping_notice` |
|
||||
| `file-check` | `services/file_check*`、`api/file_check_tools` |
|
||||
| `rohs-check` | RoHS 实例(历史 scope,新改动请用 `file-check`) |
|
||||
| `knowledge-base` | `api/knowledge_base`、`services/knowledge_cleaning/` |
|
||||
| `chat` | `api/chat`、前端 chat 相关 |
|
||||
| `auth` | 登录认证 |
|
||||
| `admin` | 管理后台通用 |
|
||||
| `agents` | Agent 管理 |
|
||||
| `api` | 跨模块 API 层重构 |
|
||||
| `migration` | Alembic 迁移 |
|
||||
| `jenkins` / `ci` / `deps` | 工程与依赖 |
|
||||
| scope | 典型目录/模块 |
|
||||
| ------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `schedule` | `services/schedule/`、`api/schedule_admin`、前端 `features/admin/modules/schedules/` |
|
||||
| `shipping-notice` | `services/shipping_notice/`、`api/workspace_shipping_notice` |
|
||||
| `file-check` | `services/file_check*`、`api/file_check_tools` |
|
||||
| `rohs-check` | RoHS 实例(历史 scope,新改动请用 `file-check`) |
|
||||
| `knowledge-base` | `api/knowledge_base`、`services/knowledge_cleaning/` |
|
||||
| `chat` | `api/chat`、前端 chat 相关 |
|
||||
| `auth` | 登录认证 |
|
||||
| `admin` | 管理后台通用 |
|
||||
| `agents` | Agent 管理 |
|
||||
| `api` | 跨模块 API 层重构 |
|
||||
| `migration` | Alembic 迁移 |
|
||||
| `jenkins` / `ci` / `deps` | 工程与依赖 |
|
||||
|
||||
示例:
|
||||
|
||||
@@ -203,8 +203,8 @@ revert: feat(shipping-notice): 支持微信扫码结账
|
||||
可选工具(尚未配置,可按需引入):
|
||||
|
||||
- `commitizen` 或 `cz-git`:交互式提交,降低学习成本。
|
||||
- 参考链接:https://www.conventionalcommits.org/en/v1.0.0/
|
||||
- 参考链接:<https://www.conventionalcommits.org/en/v1.0.0/>
|
||||
|
||||
---
|
||||
***
|
||||
|
||||
维护建议:本规范由团队共同维护,若新增 `type` 或调整规则,请在评审通过后更新本文档并同步工具配置。
|
||||
Reference in new issue
Block a user