Repository navigation
fix(scripts): read a renamed plugin's changelog headings from its old path - #15560
Conversation
… path check-changelog-parity --check-bump compared a moved CHANGELOG.md with nothing at the fork point, so a fragment-mode plugin rename read as a release adding every heading. It now compares a renamed changelog with the file it was renamed from; a heading the rename adds still fails. Refs: #15552 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #15560No security issues found. Scope: I read every hunk of both changed files, What changed: Checks:
The review was not blocking only. The lane has reviewed no earlier head of this PR. critical-findings: 0 |
|
claude-review reviewed Code review: PR #15560: read a renamed plugin's changelog headings from its old pathI read every hunk of both changed files ( What the change does.
Tests. The two new cases cover what the PR description promises:
I couldn't run anything in this lane. The author says the suite passes 127/0, shellcheck is clean, and the check passes on the real spelling-rename branch; none of that is verified here. Notes (not counted as findings):
Closing issue. The PR body says No plugin manifests changed. No settled threads or prior findings apply. Spend: none. The change only alters a local or CI shell check. |
Refs: #15552
Summary
scripts/check-changelog-parity.sh --check-bumpfails every plugin rename in fragment mode. It compares the movedCHANGELOG.mdwith nothing at the fork point, so every released heading reads as one the PR added. The spelling rename (#15552) needs this fixed on main first: the pre-push check runs main's copy of the tooling, so the rename branch cannot carry the fix itself.Fix
--check-bumpnow builds a map from each renamed changelog to the path it came from, usinggit diff --name-status -M --diff-filter=R <fork> <head> -- '*CHANGELOG.md', and reads the fork-point headings from that old path. A failed rename diff exits 2, so the check fails closed.FRAGMENT-MODE RELEASE. Only the headings the file already carried are exempt.--check-preserved, which already treats a directory rename as no deletion.Verification
scripts/check-changelog-parity.test.sh: 127 passed, 0 failed. It adds two cases. A renamed fragment-mode plugin with its released headings passes. A rename that also adds a heading fails on that heading alone.shellcheckon both files: clean.plugins/spelling/CHANGELOG.md(detected asR099), and main's copy fails it.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr