Repository navigation
fix(ci): finalize release docs and refresh release PR body - #319
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes release finalization regressions (issue #300) by ensuring final releases regenerate + commit generated docs required by pre-commit, and by refreshing the release PR body from the finalized CHANGELOG.md so it reflects the final release date/content.
Changes:
- Update final release workflow to regenerate docs, dynamically collect changed file paths for committing, add guardrails, and refresh the release PR body from
CHANGELOG.md. - Simplify the draft release PR body created by
prepare-releaseby removing persistent checklist/instructions/related sections. - Add BATS regressions for docs regeneration + dynamic commit paths + PR body cleanup, and document the fix in the Unreleased changelog.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
tests/bats/just.bats |
Adds regression tests asserting the new workflow markers/strings exist and that removed PR-body sections stay removed. |
CHANGELOG.md |
Adds an Unreleased “Fixed” entry documenting the finalization behavior change for #300. |
.github/workflows/release.yml |
Regenerates docs during finalization, commits all tracked finalization diffs (not just CHANGELOG.md), adds guardrails, and refreshes the PR body from finalized changelog content. |
.github/workflows/prepare-release.yml |
Removes persistent checklist/related content from the draft release PR body template. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes release finalization regressions from issue #300 by ensuring final releases commit all generated docs required by pre-commit and by refreshing release PR body content from finalized
CHANGELOG.md.The release PR body now follows the established release format (linked release heading with date and release-content section), while checklist/related sections are removed from persistent release PR body text.
Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/release.ymldocs/generate.py)commit-actioninstead of hardcodingCHANGELOG.mdCHANGELOG.mdwith the release heading format used in previous release PRs.github/workflows/prepare-release.ymlTesting Checklist,When Ready to Release, andRelatedsections from draft release PR bodytests/bats/just.batsCHANGELOG.mdUnreleased### Fixedentry documenting issue [BUG] finalize-release leaves generated docs stale and breaks release-branch CI #300 behavior changeChangelog Entry
Fixed
generate-docsdoes not fail CI with tracked file diffsCHANGELOG.mdTesting
just test)Manual Testing Details
npx bats tests/bats/just.bats9/9)Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
The release PR heading/body format aligns with prior release PR style for consistency (release link + date heading, then
## Release Content).Refs: #300