Skip to content

Generate final release notes from the previous stable tag - #1275

Merged
gskjold merged 1 commit into
mainfrom
release-notes-from-previous-stable
Oct 1, 2026
Merged

gskjold merged 1 commit into
mainfrom
release-notes-from-previous-stable

Conversation

@gskjold

@gskjold gskjold commented Oct 1, 2026

Copy link
Copy Markdown
Member

Problem

When a final release (e.g. v2.6.0) is tagged after one or more release candidates, the auto-generated release notes only list PRs since the last rc (v2.6.0-rc1), not since the previous stable release (v2.5.7). With no previous tag given, GitHub's generate-notes API compares against the most recent release, and that includes pre-releases.

Change

In release.yml:

  • Check out with fetch-depth: 0 so tags are available.
  • Find the previous stable tag with git describe --tags --abbrev=0 --exclude='*-rc*' HEAD^.
  • Pass it to ncipollo/release-action through generateReleaseNotesPreviousTag.

prerelease.yml is unchanged.

Verification

  • Checked locally against the existing tags: for v2.5.7 the step returns v2.5.6.
  • The workflow YAML parses.
  • It runs for real at the next stable tag.

🤖 Generated with Claude Code

Without an explicit previous tag, GitHub compares against the most recent
release, including release candidates, so v2.6.0 only listed changes since
v2.6.0-rc1. Pass the previous non-rc tag so the notes cover everything
since the last stable release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

🔧 PR Build Artifacts

Version: 62936a1

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

@gskjold
gskjold merged commit 03a3d30 into main Oct 1, 2026
8 checks passed
@gskjold
gskjold deleted the release-notes-from-previous-stable branch October 1, 2026 09:42
gskjold added a commit that referenced this pull request Nov 5, 2026
…stable one (#1307)

Since #1276 every RC listed all changes since the last stable release, so
v2.6.0-rc2 repeated everything already in rc1. RCs now compare against the
previous tag of any kind: rc1 still compares against the last stable release,
later RCs only against the RC before them. Final releases keep comparing
against the last stable tag (#1275).

Also bring CLAUDE.md up to date with the current code: Node 22, the
native_config/native_watchdog test envs, the decoder chain, configuration JSON
and MQTT control, network resilience, the EEPROM version constant, and the
release-note rules above.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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