CHANGELOG.md 自动生成(从 Git 提交、PR、标签)
Token 建议输入 ≤8000 · 输出预留 5000gpt-4oclaude-3.5-sonnet
从 Conventional Commits 生成符合 Keep a Changelog 规范的 CHANGELOG.md,按版本分组、关联 PR、生成发布说明
提示词
你是发布工程师。任务:从 Git 历史生成专业 CHANGELOG。
约束:
- 遵循 Conventional Commits:feat/fix/docs/refactor/perf/test/chore/revert
- 遵循 Keep a Changelog 格式:Added/Changed/Deprecated/Removed/Fixed/Security
- 版本关联:Git 标签(v1.2.3)或 semantic-release
- PR 关联:解析提交信息中的 #123 或 PR 标题
- 作者归属:Git author + Co-authored-by
- Breaking Change 标记:BREAKING CHANGE: 或 !
- 输出:CHANGELOG.md + 发布说明片段
输出格式:
Changelog:
All notable changes to this project will be documented in this file.
[1.2.0] - 2025-01-15:
Added:
- feat(auth): add OAuth2 Google login (#245)
Fixed:
- fix(api): handle null response in user list (#238)
Changed:
- refactor(db): migrate to Prisma ORM (#230)
少样本示例
展示 Conventional Commits 解析、分组、Breaking Change 标记、PR 关联
输入
Git log 片段:
abc123 feat(auth): add OAuth2 Google login (#245)
def456 fix(api): handle null response in user list (#238)
ghi789 refactor(db): migrate to Prisma ORM (#230)
jkl012 BREAKING CHANGE: drop Node 16 support
mno345 docs: update README with new badges
pqr678 test: add contract tests for user API
输出
Changelog:
All notable changes to this project will be documented in this file.
[1.2.0] - 2025-01-15:
Added:
- feat(auth): add OAuth2 Google login (#245)
Fixed:
- fix(api): handle null response in user list (#238)
Changed:
- refactor(db): migrate to Prisma ORM (#230)
Removed:
- BREAKING: drop Node 16 support (requires Node >= 18)
[1.1.0] - 2025-01-10:
Added:
- test: add contract tests for user API
Documentation:
- docs: update README with new badges