Skip to content

fix(ci): finalize release docs and refresh release PR body - #319

Merged
c-vigo merged 5 commits into
devfrom
bugfix/300-finalize-release-docs-ci
Mar 16, 2026
Merged

c-vigo merged 5 commits into
devfrom
bugfix/300-finalize-release-docs-ci

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

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 feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • .github/workflows/release.yml
    • Regenerate docs during final release finalization (docs/generate.py)
    • Collect dynamic tracked changed files and pass them to commit-action instead of hardcoding CHANGELOG.md
    • Add guardrails to fail if finalization produces no tracked changes or misses expected generated docs
    • Refresh release PR body from finalized CHANGELOG.md with the release heading format used in previous release PRs
  • .github/workflows/prepare-release.yml
    • Remove persistent Testing Checklist, When Ready to Release, and Related sections from draft release PR body
  • tests/bats/just.bats
    • Add regressions for docs regeneration and dynamic finalization file-path commit behavior
    • Add regression asserting release PR body section cleanup in prepare workflow
  • CHANGELOG.md

Changelog Entry

Fixed

  • Release finalization now commits generated docs and refreshes PR content (#300)
    • Final release automation regenerates docs before committing so pre-commit generate-docs does not fail CI with tracked file diffs
    • Release PR body is refreshed from finalized CHANGELOG.md

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • Ran npx bats tests/bats/just.bats
  • Result: all tests passed (9/9)

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-release by 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.

Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
@c-vigo
c-vigo enabled auto-merge March 16, 2026 08:35
@c-vigo
c-vigo merged commit 44899f3 into dev Mar 16, 2026
12 checks passed
@c-vigo
c-vigo deleted the bugfix/300-finalize-release-docs-ci branch March 16, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants