Loading...
Loading...
Compare original and translation side by side
| $ARGUMENTS | Mode |
|---|---|
Empty / | Generate changelog from recent commits |
| User-facing release notes for specific version |
| Breaking change detection and summary |
| Migration guide between two versions |
| Semantic version recommendation based on changes |
| Unrecognized input | Ask for clarification, show mode menu |
| 参数 | 模式 |
|---|---|
空值 / | 从近期提交记录生成变更日志 |
| 特定版本的面向用户的发布说明 |
| 检测并汇总重大变更 |
| 两个版本间的迁移指南 |
| 根据变更内容推荐语义化版本升级 |
| 无法识别的输入 | 请求用户澄清,显示模式菜单 |
| Term | Definition |
|---|---|
| conventional commit | Commit following |
| change type | Classification: feat, fix, refactor, perf, docs, chore, test, ci, build, style |
| breaking change | Backward-incompatible change, marked by |
| scope | Component affected, in parentheses after type |
| changelog entry | Formatted line item in a changelog section |
| release notes | User-facing summary of changes for a version |
| migration guide | Step-by-step instructions to upgrade between versions |
| semver bump | major (breaking), minor (feat), patch (fix) recommendation |
| unreleased | Changes since the last tagged version |
| 术语 | 定义 |
|---|---|
| conventional commit | 遵循 |
| change type | 分类类型:feat(新功能)、fix(修复)、refactor(重构)、perf(性能优化)、docs(文档)、chore(杂项)、test(测试)、ci(持续集成)、build(构建)、style(格式) |
| breaking change | 向后不兼容的变更,通过 |
| scope | 受影响的组件,位于类型后的括号中 |
| changelog entry | 变更日志章节中的格式化列表项 |
| release notes | 面向用户的版本变更摘要 |
| migration guide | 版本升级的分步指导说明 |
| semver bump | 版本升级建议:major(重大变更)、minor(新功能)、patch(修复) |
| unreleased | 自上一个标记版本以来的变更 |
uv run python skills/changelog-writer/scripts/commit-classifier.py [--since <tag-or-date>] [--until <ref>] [--path <dir>]uv run python skills/changelog-writer/scripts/commit-classifier.py [--since <tag-or-date>] [--until <ref>] [--path <dir>]uv run python skills/changelog-writer/scripts/changelog-formatter.py --input <classified-json> [--format keepachangelog|github|simple]uv run python skills/changelog-writer/scripts/changelog-formatter.py --input <classified-json> [--format keepachangelog|github|simple]release <version>release <version>git log --oneline <previous-tag>..<version-or-HEAD>git log --oneline <previous-tag>..<version-or-HEAD>commit-classifier.py--since--until--since--untilcommit-classifier.pybreakingbreakinguv run python skills/changelog-writer/scripts/commit-classifier.py --breaking-only [--since <tag>]uv run python skills/changelog-writer/scripts/commit-classifier.py --breaking-only [--since <tag>]data/breaking-change-patterns.jsondata/breaking-change-patterns.jsonmigration <from> <to>migration <from> <to>uv run python skills/changelog-writer/scripts/commit-classifier.py --breaking-only --since <from> --until <to>uv run python skills/changelog-writer/scripts/commit-classifier.py --breaking-only --since <from> --until <to>bumpbumpuv run python skills/changelog-writer/scripts/commit-classifier.py --since <last-tag>suggested_bumpuv run python skills/changelog-writer/scripts/commit-classifier.py --since <last-tag>suggested_bump| Bump | Reason |
|---|---|
| major | Breaking changes detected: list them |
| minor | New features without breaking changes |
| patch | Bug fixes and non-functional changes only |
| 升级类型 | 原因 |
|---|---|
| major | 检测到重大变更:列出具体内容 |
| minor | 新增功能且无重大变更 |
| patch | 仅包含Bug修复和非功能性变更 |
| File | Content | Read When |
|---|---|---|
| Keep a Changelog format, release note style, migration guide structure, semver decision tree | Formatting output in any mode |
| Conventional commits parsing rules, breaking change detection heuristics | Understanding classifier output or edge cases |
| Data File | Content | Used By |
|---|---|---|
| Format templates (Keep a Changelog, GitHub Releases, simple) | |
| Language-specific breaking change detection patterns | |
| Script | Purpose |
|---|---|
| Parse git log, classify by conventional type, detect breaking changes |
| Convert classified commits JSON to formatted changelog markdown |
| 文件 | 内容 | 读取时机 |
|---|---|---|
| 《Keep a Changelog》格式、发布说明风格、迁移指南结构、语义化版本决策树 | 任何模式下格式化输出时 |
| 规范提交解析规则、重大变更检测启发式方法 | 理解分类器输出或处理边缘情况时 |
| 数据文件 | 内容 | 使用方 |
|---|---|---|
| 格式模板(《Keep a Changelog》、GitHub Releases、simple) | |
| 特定语言的重大变更检测模式 | |
| 脚本 | 用途 |
|---|---|
| 解析Git日志,按规范类型分类,检测重大变更 |
| 将分类后的提交记录JSON转换为格式化的变更日志Markdown |
git loggit tagcommit-classifier.pygit loggit tagcommit-classifier.py