Skip to content

ci: support curated release notes via RELEASE_NOTES.md#134

Merged
patchloom-release[bot] merged 1 commit into
mainfrom
ci/release-notes-override
Jun 18, 2026
Merged

ci: support curated release notes via RELEASE_NOTES.md#134
patchloom-release[bot] merged 1 commit into
mainfrom
ci/release-notes-override

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Adds optional support for curated, LLM-assisted release notes.

How it works:

  1. Before a release, write a RELEASE_NOTES.md at the repo root with
    user-facing release notes and merge it to main via a small PR
  2. Merge the release-please PR as usual
  3. The release workflow detects RELEASE_NOTES.md on the tagged commit
    and replaces the GitHub Release body with its contents
  4. A cleanup PR is auto-created to delete RELEASE_NOTES.md from main

When no RELEASE_NOTES.md is present, behavior is identical to before
(release-please auto-generated notes are used).

Two new steps in the release job:

  • Apply custom release notes: checks for the file and runs
    gh release edit --notes-file if found
  • Clean up release notes file: creates a branch, deletes the file
    via the Contents API, opens a PR with auto-merge enabled. Uses a
    GitHub App token so the cleanup PR triggers CI and auto-approve.

Add two steps to the release workflow:

1. Override: if RELEASE_NOTES.md exists on the tagged commit, replace the
   GitHub Release body with its contents via gh release edit.
2. Cleanup: after the release, create a PR to delete RELEASE_NOTES.md
   from main using a GitHub App token (so the PR triggers CI/auto-approve).

When no RELEASE_NOTES.md is present, behavior is unchanged (release-please
auto-generated notes are used as before).

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@patchloom-release patchloom-release Bot enabled auto-merge (squash) June 18, 2026 04:55
@patchloom-release patchloom-release Bot merged commit 07bb605 into main Jun 18, 2026
19 checks passed
@patchloom-release patchloom-release Bot deleted the ci/release-notes-override branch June 18, 2026 04:57
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