Skip to content

[CHORE] Fix release PR body Markdown heading hierarchy #449

Closed

Description

@c-vigo

Chore Type: CI / Build change

Description

Release PR bodies (e.g. PR 342) use the wrong heading levels: the main title is ## Release X.Y.Z, the changelog section from CHANGELOG.md starts with ## [X.Y.Z] - TBD, and a redundant ### Release Content wrapper sits between the intro and the changelog. That makes the changelog subsection effectively demoted under "Release Content" instead of reading as the top-level release notes under the PR title.

Desired structure

  • Prepare (draft PR): # Release X.Y.Z, one-line intro, then the extracted changelog block unchanged so it still begins with ## [X.Y.Z] - TBD.
  • Finalize (release.yml refresh): Keep the existing main H1 as-is (# [Release X.Y.Z](…) - <date>). Only the changelog slice should be updated (date/link in the ## [X.Y.Z] line per current behavior). Remove the ### Release Content wrapper there as well.

Acceptance criteria

  • prepare-release.yml — draft PR body uses # Release $VERSION, no ### Release Content, changelog content still starts at ## [$VERSION].
  • release.yml — refreshed PR body matches the same hierarchy (H1 unchanged from current linked title + date; no ### Release Content).
  • Synced copy under assets/workspace/.github/workflows/prepare-release.yml updated if it mirrors this workflow.
  • BATS or other tests updated if they assert the old strings.
  • docs/RELEASE_CYCLE.md (or other canonical release docs) updated only if they describe the old PR body shape.

Implementation notes

  • Current templates: PR_BODY in .github/workflows/prepare-release.yml (~298–304); cat > /tmp/release-pr-body.md in .github/workflows/release.yml (~729–737).

Related issues

Priority

Low

Changelog category

No changelog needed

Additional context

GitHub PR bodies render Markdown; correct hierarchy improves readability and matches Keep a Changelog–style ## [version] sections.

Activity

  1. added
    chore
    area:ci
    on Mar 26, 2026
  2. self-assigned this
    on Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cichore

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions