gen-changelog
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese根据当前分支相对于 main 分支的修改,生成更新日志条目并同步到文档站点。
Generate changelog entries based on the changes of the current branch relative to the main branch, and sync them to the documentation site.
步骤
Steps
- 分析变更:查看 和
git log main..HEAD --oneline,理解所有变更。git diff main..HEAD --stat - 更新源 CHANGELOG:在根目录 的
CHANGELOG.md下添加条目;如果变更属于## Unreleased或packages/下的子包,同时更新对应目录的sdks/。CHANGELOG.md - 同步英文文档 changelog:运行 将根
node docs/scripts/sync-changelog.mjs同步到CHANGELOG.md。docs/en/release-notes/changelog.md - 更新中文文档 changelog:在 的
docs/zh/release-notes/changelog.md下添加对应的中文翻译条目,遵循现有格式和用词规范(参考## 未发布中的术语表和排版规范)。docs/AGENTS.md - Breaking changes(如有):如果变更包含破坏性变更(如移除/重命名选项、更改默认行为、迁移配置格式等),还需在 和
docs/en/release-notes/breaking-changes.md的docs/zh/release-notes/breaking-changes.md/## Unreleased下添加对应条目,遵循现有的格式(版本标题 + 小节 + 受影响/迁移说明)。## 未发布
- Analyze Changes: Check and
git log main..HEAD --onelineto understand all changes.git diff main..HEAD --stat - Update the Source CHANGELOG: Add entries under in the root directory's
## Unreleased; if the changes belong to sub-packages underCHANGELOG.mdorpackages/, also update thesdks/in the corresponding directory.CHANGELOG.md - Sync English Documentation Changelog: Run to sync the root
node docs/scripts/sync-changelog.mjstoCHANGELOG.md.docs/en/release-notes/changelog.md - Update Chinese Documentation Changelog: Add corresponding Chinese translated entries under in
## Unreleased, following the existing format and terminology specifications (refer to the glossary and typesetting guidelines indocs/zh/release-notes/changelog.md).docs/AGENTS.md - Breaking Changes (if applicable): If the changes include breaking changes (such as removing/renaming options, changing default behaviors, migrating configuration formats, etc.), you also need to add corresponding entries under in
## Unreleasedanddocs/en/release-notes/breaking-changes.md, following the existing format (version title + section + affected/migration instructions).docs/zh/release-notes/breaking-changes.md
注意事项
Notes
- 条目风格遵循现有 CHANGELOG 的格式:(如
- 分类: 描述、- Core: ...)。- Web: ... - 只写对用户有意义的变更,不写纯内部重构。
- 中文翻译应遵循 中的术语映射和排版规范。
docs/AGENTS.md
- Follow the format of the existing CHANGELOG for entry style: (e.g.,
- Category: Description,- Core: ...).- Web: ... - Only write changes meaningful to users; do not include pure internal refactoring.
- Chinese translations should follow the terminology mapping and typesetting guidelines in .
docs/AGENTS.md