Skip to content

chore(release): build release notes from a changelog - #4

Merged
bmc08gt merged 1 commit into
mainfrom
chore/release-notes-from-changelog
Aug 26, 2026
Merged

chore(release): build release notes from a changelog#4
bmc08gt merged 1 commit into
mainfrom
chore/release-notes-from-changelog

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

publish.yml created the GitHub release with --generate-notes, which lists merged PR titles. For a contract package that says nothing useful: 0.1.0 released with a body containing only a "Full Changelog" link, so a consumer reading it cannot tell what is in the API.

Release notes now come from the CHANGELOG.md section matching the version being published. The section is written in the PR that syncs the contract, while the diff is still at hand, rather than reconstructed at release time by whoever runs the workflow.

A version with no section fails the publish. That check runs early, before the signed build and before the upload, because Maven Central will not accept a version number twice and a release that fails late has already spent one.

CHANGELOG.md starts with an entry for 0.1.0. There is no unreleased contract change here, so the next sync PR adds the next section.

Mirrors ocp-client-protocol

This is the same change as code-payments/ocp-client-protocol#4, which carries it alongside a contract sync. The two publish.yml files stay identical apart from names and package coordinates: the extract step and the --notes-file line are byte-for-byte the same in both.

The orchestrator's /fetch-protos skill now documents writing the changelog entry as part of agreeing the version, so both repos needed to behave the same way or the instruction would be wrong for one of them.

publish.yml created the GitHub release with --generate-notes, which lists merged PR
titles. For a contract package that says nothing useful: 0.1.0 released with a body
that was only a "Full Changelog" link, so a consumer reading it could not tell what
was in the API.

Release notes now come from a CHANGELOG.md section matching the published version,
written in the PR that syncs the contract while the diff is still at hand. A version
with no section fails the publish, and it fails before the upload, since Maven Central
will not take a version number twice.

Mirrors the same change in ocp-client-protocol, keeping the two publish workflows
identical apart from names and coordinates.
@bmc08gt bmc08gt self-assigned this Aug 26, 2026
@bmc08gt
bmc08gt merged commit e066da9 into main Aug 26, 2026
0 of 3 checks passed
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.

1 participant