feat(devex): changelog.d 碎片化——终结 [Unreleased] 单行道冲突税 (#174) - #187
feat(devex): changelog.d 碎片化——终结 [Unreleased] 单行道冲突税 (#174)#1872233admin wants to merge 2 commits into
Conversation
每 PR 写独立碎片;tools/aggregate_changelog.py 在 release 时按类型聚合进 CHANGELOG 并删除碎片(--dry-run / --check-pr);CI 对缺碎片的 crates/** 与 orchestration/** 变更仅 advisory 提示。
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
🔒 Repowise is not analyzing this repository The PR bot is free on public repositories. This one is private, which needs a Pro plan. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Intel change risk
Top signals
revspec: |
en-US runner 子进程按 cp1252 写出 em-dash(0x97),父进程 utf-8 解码崩掉 dry-run 测试;stdout/stderr reconfigure + PYTHONUTF8=1。
方案 (issue #174)
CHANGELOG.md 的
[Unreleased]是所有 PR 的必撞单行道。本 PR 引入 towncrier 式碎片:changelog.d/— 每 PR 一个碎片(<pr号>.md/<slug>.md),type: feat|fix|docs|...+ Keep a Changelog bullet;本 PR 自举碎片changelog.d/174-changelog-fragments.md。tools/aggregate_changelog.py— release 时把碎片按类型聚合进CHANGELOG.md对应版本段并删除碎片;--dry-run只打印将写入内容;--check-pr供 CI advisory。ci.yml)— PR 改了crates/**或orchestration/**但无changelog.d碎片 →::warning::,不阻断。自检tests/test_aggregate_changelog.py并入 layout 校验步骤。changelog.d/README.md惯例;docs/public-beta.md增加 Maintainer release 聚合步骤;docs/repository-layout.md登记目录与脚本。存量
[Unreleased]条目原地保留,不在本 PR 迁移。验证
环境:
CODE_INTEL_HOME=D:/projects/code-intel-pipeline/.claude/worktrees/grok-174-changelogcargo fmt --checkcargo test -p code-intel --lockedpython tests/test_aggregate_changelog.py -vlegacy/tools/check-hardcoded-paths.ps1python tests/test_repository_layout.py -vpython tools/aggregate_changelog.py --version 0.7.0-beta.6 --date 2026-08-04 --dry-run推分支前其它门禁
从
AGENTS.md/ 仓库文档找到并执行了:check-hardcoded-paths.ps1、test_repository_layout.py、session_start(编辑前)。未找到单独的「完整推分支前门禁清单」文档;CI 全量矩阵(self-scan / package / cross-platform)依赖 GitHub Actions,本机未重跑。Closes #174