my-git

Commit Message Convention

格式

<type>(<scope>): <subject>

类型

示例

feat(auth): add GitHub OAuth login
fix(api): handle empty response correctly
docs(git): add troubleshooting guide
refactor(order): simplify pricing calculation
test(auth): cover expired token case

规则

AI 协作与 Co-authored-by

团队需要记录 AI 工具参与时,在 commit 正文后保留一个空行,再添加团队认可的署名 trailer:

Co-authored-by: <name or approved tool identity> <email>

GitHub 支持用一个或多个 Co-authored-by trailer 记录共同作者,格式与邮箱要求见 GitHub Docs:创建多作者 commit。