changelog-writer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseChangelog Writer
变更日志编写指南
Create and maintain changelogs following industry standards.
遵循行业标准创建并维护变更日志。
When to Use
使用场景
- Preparing a new release
- Documenting recent changes
- Creating initial changelog
- Migrating to standard format
- 准备新版本发布
- 记录近期变更
- 创建初始变更日志
- 迁移至标准格式
Changelog Format
变更日志格式
Following Keep a Changelog:
markdown
undefinedmarkdown
undefinedChangelog
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
[Unreleased]
[Unreleased]
Added
Added
- New feature description
- New feature description
Changed
Changed
- Modified behavior description
- Modified behavior description
Deprecated
Deprecated
- Soon-to-be removed feature
- Soon-to-be removed feature
Removed
Removed
- Removed feature description
- Removed feature description
Fixed
Fixed
- Bug fix description
- Bug fix description
Security
Security
- Security fix description
- Security fix description
[1.0.0] - 2026-01-15
[1.0.0] - 2026-01-15
Added
Added
- Initial release
- Core functionality
undefined- Initial release
- Core functionality
undefinedChange Categories
变更分类
| Category | Use For |
|---|---|
| Added | New features |
| Changed | Changes in existing functionality |
| Deprecated | Features to be removed in future |
| Removed | Features removed in this release |
| Fixed | Bug fixes |
| Security | Security vulnerability fixes |
| 分类 | 适用场景 |
|---|---|
| Added | 新功能 |
| Changed | 现有功能变更 |
| Deprecated | 即将移除的功能 |
| Removed | 本版本移除的功能 |
| Fixed | Bug修复 |
| Security | 安全漏洞修复 |
Writing Good Entries
编写优质条目
Do
正确示例
markdown
undefinedmarkdown
undefinedAdded
Added
- Add user authentication with JWT tokens
- Add rate limiting (100 requests/minute per IP)
- Add CSV export for reports
- Add user authentication with JWT tokens
- Add rate limiting (100 requests/minute per IP)
- Add CSV export for reports
Fixed
Fixed
- Fix memory leak when processing large files (#234)
- Fix incorrect timezone handling in date picker
undefined- Fix memory leak when processing large files (#234)
- Fix incorrect timezone handling in date picker
undefinedDon't
错误示例
markdown
undefinedmarkdown
undefinedAdded
Added
- Added stuff
- New feature
- Updates
- Added stuff
- New feature
- Updates
Fixed
Fixed
- Fixed bug
- Fix issue
undefined- Fixed bug
- Fix issue
undefinedEntry Guidelines
条目编写准则
Be Specific
内容具体
markdown
undefinedmarkdown
undefinedBad
不良示例
- Fixed a bug
- Fixed a bug
Good
良好示例
- Fix crash when uploading files larger than 10MB (#156)
undefined- Fix crash when uploading files larger than 10MB (#156)
undefinedInclude Context
包含上下文
markdown
undefinedmarkdown
undefinedBad
不良示例
- Changed the API
- Changed the API
Good
良好示例
- Change endpoint to require authentication (BREAKING)
/users
undefined- Change endpoint to require authentication (BREAKING)
/users
undefinedReference Issues/PRs
关联问题/PR
markdown
- Add dark mode support (#234)
- Fix memory leak in image processor (fixes #189)markdown
- Add dark mode support (#234)
- Fix memory leak in image processor (fixes #189)Indicate Breaking Changes
标记破坏性变更
markdown
undefinedmarkdown
undefinedChanged
Changed
- BREAKING: Rename to
getUser()for consistencyfetchUser() - BREAKING: Remove deprecated API endpoints
v1
undefined- BREAKING: Rename to
getUser()for consistencyfetchUser() - BREAKING: Remove deprecated API endpoints
v1
undefinedConventional Commits to Changelog
Conventional Commits 映射至变更日志
Map commit types to changelog categories:
| Commit Type | Changelog Category |
|---|---|
| Added |
| Fixed |
| (usually not included) |
| (usually not included) |
| Changed (if user-facing) |
| Changed |
| (usually not included) |
| (usually not included) |
| Changed/Removed |
将提交类型映射到变更日志分类:
| 提交类型 | 变更日志分类 |
|---|---|
| Added |
| Fixed |
| (通常不包含) |
| (通常不包含) |
| Changed(若面向用户) |
| Changed |
| (通常不包含) |
| (通常不包含) |
| Changed/Removed |
Example Commits to Entries
提交示例转条目
feat: add user profile page
fix: resolve login timeout issue (#123)
feat!: change authentication to OAuth 2.0Becomes:
markdown
undefinedfeat: add user profile page
fix: resolve login timeout issue (#123)
feat!: change authentication to OAuth 2.0转换为:
markdown
undefinedAdded
Added
- Add user profile page
- Add user profile page
Changed
Changed
- BREAKING: Change authentication to OAuth 2.0
- BREAKING: Change authentication to OAuth 2.0
Fixed
Fixed
- Resolve login timeout issue (#123)
undefined- Resolve login timeout issue (#123)
undefinedVersion Numbering
版本号规则
Following Semantic Versioning:
MAJOR.MINOR.PATCH
1.0.0 → 1.0.1 (patch: bug fixes)
1.0.1 → 1.1.0 (minor: new features, backward compatible)
1.1.0 → 2.0.0 (major: breaking changes)MAJOR.MINOR.PATCH
1.0.0 → 1.0.1 (补丁版本:Bug修复)
1.0.1 → 1.1.0 (次版本:新增功能,向后兼容)
1.1.0 → 2.0.0 (主版本:破坏性变更)When to Bump
版本升级场景
| Change Type | Version Bump |
|---|---|
| Bug fix (backward compatible) | PATCH |
| New feature (backward compatible) | MINOR |
| Breaking change | MAJOR |
| Security fix | PATCH (or MINOR if new feature) |
| 变更类型 | 版本升级类型 |
|---|---|
| 向后兼容的Bug修复 | PATCH |
| 向后兼容的新功能 | MINOR |
| 破坏性变更 | MAJOR |
| 安全修复 | PATCH(若涉及新功能则为MINOR) |
Release Checklist
发布检查清单
When preparing a release:
- Move items from to new version section
[Unreleased] - Add release date:
## [1.2.0] - 2026-01-15 - Update comparison links at bottom
- Remove empty categories
- Review for clarity and completeness
- Commit changelog with version bump
准备发布时:
- 将中的条目移至新版本章节
[Unreleased] - 添加发布日期:
## [1.2.0] - 2026-01-15 - 更新底部的对比链接
- 移除空分类
- 检查内容的清晰度与完整性
- 提交变更日志并升级版本号
Automation Tools
自动化工具
Conventional Changelog
Conventional Changelog
bash
npx conventional-changelog -p angular -i CHANGELOG.md -sbash
npx conventional-changelog -p angular -i CHANGELOG.md -sRelease Please
Release Please
yaml
undefinedyaml
undefined.github/workflows/release.yml
.github/workflows/release.yml
- uses: google-github-actions/release-please-action@v4 with: release-type: node
undefined- uses: google-github-actions/release-please-action@v4 with: release-type: node
undefinedChangesets
Changesets
bash
npx changeset # Create changeset
npx changeset version # Update versionsbash
npx changeset # 创建变更记录
npx changeset version # 更新版本号Template: Initial Changelog
模板:初始变更日志
markdown
undefinedmarkdown
undefinedChangelog
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
[Unreleased]
[Unreleased]
[0.1.0] - YYYY-MM-DD
[0.1.0] - YYYY-MM-DD
Added
Added
- Initial release
- [List initial features]
undefined- Initial release
- [List initial features]
undefined