feat(release): generate the GitHub release body from the changelog - #2987
Open
vmaerten wants to merge 4 commits into
Open
feat(release): generate the GitHub release body from the changelog#2987vmaerten wants to merge 4 commits into
vmaerten wants to merge 4 commits into
Conversation
vmaerten
marked this pull request as ready for review
August 20, 2026 09:20
vmaerten
requested review from
andreynering and
pd93
and
a lite review from Copilot
August 20, 2026 09:29
There was a problem hiding this comment.
Pull request overview
This PR automates the GitHub Release body generation by extracting the matching version section from CHANGELOG.md and wiring it into the release workflow, reducing manual steps in the release process.
Changes:
- Add
--notesmode tocmd/releaseto print the current version’s changelog section (for use as the GitHub release body). - Update the GitHub Actions release workflow to generate release notes and pass them to GoReleaser.
- Update release documentation and remove the now-obsolete manual “copy changelog to release” step.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| website/src/next/docs/releasing.md | Documents that the GitHub release body is sourced from the version’s CHANGELOG.md section via cmd/release --notes. |
| Taskfile.yml | Removes the manual instruction to copy changelog text into the GitHub release. |
| cmd/release/notes.go | Implements changelog section extraction and printing for --notes. |
| cmd/release/notes_test.go | Adds unit tests for changelog section extraction behavior. |
| cmd/release/main.go | Adds --notes flag and routes execution to the new notes generator. |
| .github/workflows/release.yml | Generates release notes in CI and passes them to GoReleaser as release notes. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+23
to
+24
| _, err = fmt.Fprintln(w, changelogSection(string(b), version)) | ||
| return err |
| distribution: goreleaser-pro | ||
| version: latest | ||
| args: release --clean --draft | ||
| args: release --clean --release-notes=${{ runner.temp }}/release-notes.md |
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
One step to a fully automated release process! The "release body" is now fully automated, taken from the
CHANGELOG.mdas usualChecklist