Skip to content

Git Committer Workflow

AI 驱动的 Git 提交工作流,自动分析变更并生成规范提交信息。

使用方式

bash
# 分析变更并生成提交
deno run -A git-committer.workflow.ts

# 预览模式
deno run -A git-committer.workflow.ts --dry-run

# 只提交指定文件
deno run -A git-committer.workflow.ts --files "src/*.ts"

参数

参数别名说明
--files-f文件 glob 模式
--staged-s只提交暂存区
--dry-run-n预览不执行

提交格式

遵循 Conventional Commits:

<type>(<scope>): <description>

[body]

[footer]
类型说明
feat新功能
fixBug 修复
refactor重构
docs文档
test测试
chore构建/工具