fix(source-control): changelog fragment writer duplicates headings and edits other plugins' fragments
维护者通常 1 天内回复
评估
调研方向
Start with scripts/write-changelog-fragments.sh and inspect how it selects fragments, updates headings, and determines the bump level. Then read the existing tests or test setup for this script and add cases for repeated headings, upward-only bump changes, merge-base filtering, and an in-progress merge. Done means each case passes and merge runs write no fragments.
由索引模型根据 Issue 内容生成。
描述
The source-control commit skill's scripts/write-changelog-fragments.sh has two defects. Both were seen repeatedly on 2026-10-11 (#7204, #7208, and the #7150 branch).
- A duplicate heading on every releasing commit. A second releasing commit on a branch appends another
### Fixed(or### Added/### Changed) heading to the branch's fragment instead of adding its entry under the existing heading. markdownlint MD024 then failslint-repo, and someone has to merge the headings by hand. - It writes into other plugins' fragments during a merge. When run during a merge of
main, it appended the commit's entry to fragments that the merge had just brought in from other plugins (.changes/harness-ops/fix-7203-...,.changes/source-control/feat-check-affected-push-hook-...on #7208). The entries had to be removed by hand.
Fix
- Add each entry under the matching existing heading, creating the heading only when it is absent, and raise the bump level only upward.
- Only touch fragments this branch created: ones not present on the merge base. Write nothing during an in-progress merge.
- Add a test for each case.
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 7 小时 8 分钟
- 30 天内合并 PR
- 874
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
needs-human
难度 2/5 1-3 小时 新手友好度 75/100
melodic-software/claude-code-plugins#8405 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-human
难度 2/5 1-3 小时 新手友好度 72/100
melodic-software/claude-code-plugins#8374 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-human priority: low
难度 2/5 1-3 小时 新手友好度 85/100
melodic-software/claude-code-plugins#8366 · 1 条评论 ·
维护者通常 1 天内回复
-
priority: medium
难度 2/5 1-3 小时 新手友好度 78/100
melodic-software/claude-code-plugins#8341 · 1 条评论 ·
维护者通常 1 天内回复
-
priority: low
难度 2/5 1-3 小时 新手友好度 76/100
melodic-software/claude-code-plugins#8338 · 1 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
facebookincubator/muse-gadget-sdk#249 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
难度 1/5 1-3 小时 新手友好度 78/100
btclib-org/portanode#699 ·
维护者通常 1 天内回复
-
automated issue report
难度 1/5 1 小时以内 新手友好度 76/100
a2aproject/A2A#2366 ·
维护者通常 3 天内回复