Repository navigation
chore(release): 按 PR 拆分待发布版本日志 - #116
Merged
Merged
Conversation
Changelog: skip
- 忽略 changelog.d/ 里的点文件(.DS_Store、.gitkeep),不再阻塞 lint 和发版 - 发版前要求 changelog.d/ 没有未提交改动,避免把未合并的日志发布并删除 - PR 改动 [Unreleased] 时要求其格式正确且为空 - 非发版 PR 不能删除已有日志,改名和 skip-changelog 标签除外 - 基准提交缺少 CHANGELOG.md 时视为空 - commit-msg 钩子拦截暂存到 [Unreleased] 的新条目 - PR 模板补回 skip-changelog 说明,贡献指南同步新规则 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为什么改
多个 PR 在
CHANGELOG.md的同一位置追加待发布日志时,即使业务代码各自独立,也会发生合并冲突。#112 和 #113 就遇到了这种情况。改了什么
changelog.d/新增独立日志文件。CI 检查 PR 是否需要新增日志,本地钩子校验暂存文件格式。保留现有 CI 检查名称和豁免机制。--write后会分类汇总日志、更新VERSION并移除已汇总的文件。master上的四条待发布日志,并更新贡献指南、PR 模板和发版说明。怎么验证
node --test scripts/tests/*.test.mjs通过 18 项测试,包括两个修复 PR 依次合并、两条日志都保留的回归测试。node scripts/changelog-check.mjs pr origin/master通过,发版预览包含迁移的四条日志。actionlint、pre-commit validate-config和提交钩子全部通过。bash scripts/check.sh的后端和 CLI 检查通过。前端首次测试初始化超时,单独重跑bash scripts/check.sh web全部通过。风险与兼容性
合入后,仍在
[Unreleased]写待发布条目的开放 PR,需要把条目移入changelog.d/。发版 CI 继续从CHANGELOG.md读取已确认的版本说明。