Skip to content

ci: fail a PR that edits a released CHANGELOG section #1234

Closed

Description

@nc9

Two PRs (#716, #1207) merged after v0.0.138 was tagged and added their bullets inside the v0.0.138 section instead of Unreleased. The release body was unaffected (extracted before), but CHANGELOG.md on main claimed features the tag does not contain until #1233 moved them.

A reviewer-memory rule (released sections unchanged vs tag) existed but nothing enforced it.

Acceptance Criteria

  • A CI check compares every released ## vX.Y.Z section (any version with a tag) in the PR's CHANGELOG.md against the same section at that tag and fails on any difference, naming the section.
  • A PR that only edits ## [Unreleased] passes; the release bump PR (which renames Unreleased to the new version heading) passes.
  • The failure message tells the author to move the bullet under ## [Unreleased].
  • A test covers a bullet added to a released section (fails) and to Unreleased (passes).

Activity

  1. added
    enhancement
    size: S
    on Oct 28, 2026
  2. added theissue type on Oct 28, 2026
  3. WilliamK112 commented on Oct 28, 2026

    @WilliamK112
    Contributor

    I would like to take this. I will add a tested released-section verifier that compares tagged CHANGELOG sections against their tag snapshots, wire it into pull-request CI, preserve Unreleased and release-bump behavior, and run the focused release tooling checks plus the repository validation required by the changed paths.

  4. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Already on main: scripts/check-released-changelog.sh compares every released ## vX.Y.Z section with its tag and fails naming the section, with the message to move bullets under ## [Unreleased]; scripts/test-released-changelog.sh covers a bullet added to a released section (fails) and to Unreleased (passes); the Changelog guard CI job runs it on every PR (it is what failed #1330). Closing.

    nik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsize: S

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions