用途:commit-submit 用于在用户提出 commit、提交、stage、暂存或 git status 等请求时,按统一格式整理并生成 Git 提交信息,规范提交记录。
主要能力:提供固定的提交信息格式,包含标题与描述两部分。标题格式为 <type>: <简洁描述>,描述中可包含 Log、PMS、Issue、Influence 等字段。其中 title 与 description 为必填;Log 等于 title 去掉 type 后的内容;PMS、Issue、Influence 为可选字段。支持的 type 包括 feat、fix、docs、style、refactor、perf、test、chore、ci。
使用方式:根据用户请求生成符合格式的提交信息。示例:fix(user): resolve incorrect role mapping,描述为 Use correct role key from database config.,Log 为 resolve incorrect role mapping;feat(auth): add JWT authentication,描述为 Add JWT middleware with token validation.,Log 为 add JWT authentication,并附带 PMS: TASK-385999 与 Issue: Fixes #183。
PMS/Issue 处理规则:当项目名以 dde- 或 deepin- 开头时必须询问;用户主动提到时必须询问;其他情况跳过,不主动询问 PMS/Issue。
限制:必须在用户确认后才执行 commit;除必须情形外不主动询问 PMS/Issue。资料未提供安装命令、平台支持、收费方式及更多实现细节。