update-release-notes
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUpdate release notes
更新发布说明
This skill handles the operational tasks of maintaining release notes: adding new PR entries to and archiving releases when a new version is published.
next.mdx该Skill负责处理发布说明的运维任务:向添加新的PR条目,以及在发布新版本时归档旧版本发布说明。
next.mdxProcess
流程
1. Check status
1. 检查状态
Run the status script to determine versions and diff branch:
bash
.claude/skills/update-release-notes/scripts/get-changelog-status.shThis returns:
- (e.g.,
diff_branch) - the branch to diff againstv4.3.x - - the most recent published release
latest_release - Whether archival is needed
运行状态脚本以确定版本和对比分支:
bash
.claude/skills/update-release-notes/scripts/get-changelog-status.sh返回内容包括:
- (例如
diff_branch):用于对比的分支v4.3.x - :最新已发布版本
latest_release - 是否需要执行归档操作
2. Handle archival (if needed)
2. 处理归档(若需要)
If a new release was published since in :
last_versionnext.mdx- Copy content to
next.mdx(e.g.,vX.Y.0.mdx)v4.3.0.mdx - Update the frontmatter in the new file:
- Set to the version
title - Update dates
- Add the GitHub release link after frontmatter
- Set
- Reset :
next.mdx- Update field to the new release
last_version - Clear the content sections
- Keep the file structure for accumulating new changes
- Update
如果自中的以来已有新版本发布:
next.mdxlast_version- 将的内容复制到
next.mdx(例如vX.Y.0.mdx)v4.3.0.mdx - 更新新文件的前置元数据(frontmatter):
- 将设置为对应版本号
title - 更新日期
- 在前置元数据后添加GitHub发布链接
- 将
- 重置:
next.mdx- 将字段更新为新发布的版本
last_version - 清空内容部分
- 保留文件结构以便积累新的变更
- 将
3. Find new PRs
3. 查找新PR
Get PR numbers merged since the release branch:
bash
.claude/skills/update-release-notes/scripts/get-new-prs.sh <diff_branch>获取自发布分支以来合并的PR编号:
bash
.claude/skills/update-release-notes/scripts/get-new-prs.sh <diff_branch>4. Fetch PR details
4. 获取PR详情
Batch fetch all PR information:
bash
.claude/skills/update-release-notes/scripts/fetch-pr-batch.sh <pr1> <pr2> ...批量获取所有PR信息:
bash
.claude/skills/update-release-notes/scripts/fetch-pr-batch.sh <pr1> <pr2> ...5. Update next.mdx
5. 更新next.mdx
For each PR not already in :
next.mdx- Check PR labels and body against the style guide's categorization rules
- Skip PRs that should be omitted (see style guide)
- Add entries to the appropriate section
- Promote significant changes to featured sections when warranted
对于每个尚未出现在中的PR:
next.mdx- 根据风格指南的分类规则检查PR标签和正文
- 跳过应被忽略的PR(详见风格指南)
- 将条目添加到对应的章节
- 若有重大变更,将其提升至特色章节
6. Verify
6. 验证
Check that:
- PR links are correct
- Community contributors are credited
- Sections are in the correct order
- Breaking changes are marked with 💥
检查以下内容:
- PR链接是否正确
- 是否已致谢社区贡献者
- 章节顺序是否正确
- 破坏性变更是否已标记💥
The last_version
field
last_versionlast_version
字段
last_versionThe frontmatter includes a field that tracks the most recent published release. This determines which PRs are "new" and need to be added.
next.mdxlast_versionnext.mdxlast_versionReferences
参考资料
- Style guide: See for guidance on what a release notes article should contain and how to format it.
../shared/release-notes-guide.md - Scripts: See for automation helpers
scripts/
- 风格指南:详见,其中包含发布说明文章应涵盖的内容及格式规范。
../shared/release-notes-guide.md - 脚本:详见目录下的自动化辅助工具
scripts/