基于 git diff --staged 分析变更,自动生成符合 Conventional Commits 规范的提交信息。
git
直接说「帮我提交代码」「生成 commit message」「提交变更」即可触发。
- 检测暂存区(
git status --short) - 分析
git diff --staged推断类型(feat/fix/docs 等)和 scope - 预览生成的 commit message,等待确认
- 执行
git commit并联动 PR 管理/审查
| 选项 | 动作 |
|---|---|
| ✅ 确认 | 直接提交 |
| ✏️ 编辑 | 修改 type/scope/描述 |
| 🔄 重试 | 重新分析 |
| 📝 手写 | 完全手写 |
| ❌ 取消 | 不提交 |
- 提交完成后,有 GitHub remote 时提示 PR 管理
- 涉及代码变更时提示 代码审查