Repository navigation
refactor: drop CHANGELOG placeholder rename, create from PR body at merge - #67
Conversation
…erge
Removes the CHANGELOG placeholder rename step from pr-validator. The
rename required a bot token, a push, and an exit-then-retrigger dance
that created cyclic complexity and left stale red checks on PRs.
New flow:
1. pr-validator: AI review → enable auto-merge (squash). No CHANGELOG
manipulation. GitHub branch protection waits for all required checks.
2. tag-on-merge: When a PR is merged, create CalVer tag AND extract
## CHANGELOG from PR body to create CHANGELOG/<calver>.md on main.
The umbrella dispatcher drops the wait-ci job entirely — auto-merge
already waits for verify/go gates via branch protection.
Review — BLOCKHead SHA: Change class: hook/workflow (org-wide workflow refactor: pr-validator + tag-on-merge). Security screen: The PR modifies the validator workflow itself (T4 self-modifying-security). The AI-review → parse → gate → auto-merge core is preserved, but the change does not match its stated intent and the new mechanism is untriggerable as shipped (block 3). Blocks
Placement: CORRECT (merge-time CHANGELOG creation belongs in the tag-on-merge workflow layer) — but the functional defect above blocks regardless of placement. Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Summary
Removes the CHANGELOG placeholder rename mechanism from the reusable pr-validator workflow. The rename required a bot token, a Contents-API push, and an exit-then-retrigger dance that created cyclic complexity and left stale red checks on PRs.
New flow
pull_request: closedwithmerged == true, or sweep), create the CalVer tag AND extract## CHANGELOGfrom the PR body to createCHANGELOG/<calver>.mdonmain.Changes
actions: writepermission (no longer needed). Simplified to: checkout -> AI review -> parse verdict -> enable auto-merge.pull_request: closedtrigger (primary) alongside existingschedulecron (backstop).Why this is simpler
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)