Skip to content

release.sh: use merge-commit for release PRs to preserve release notes#687

Merged
marionbarker merged 2 commits into
devfrom
release-merge-commit-notes
Jul 19, 2026
Merged

release.sh: use merge-commit for release PRs to preserve release notes#687
marionbarker merged 2 commits into
devfrom
release-merge-commit-notes

Conversation

@bjorkert

Copy link
Copy Markdown
Member

Background

The previous (non-PR) release flow merged dev into main with a fast-forward git merge, so main contained the actual feature-PR commits. GitHub's auto-generated release notes walked those commits and produced a full, correctly-attributed changelog.

Moving the release flow to PRs (#649) switched to rebase-merge, which rewrites those commits to new SHAs on main. As a result, for v6.2.0:

  • the auto-generated release notes credited only the release author and listed no feature PRs, and
  • main and dev ended up on divergent histories (identical content, different SHAs).

Change

Updates the guidance in both release PR bodies generated by release.sh from "use rebase-merge … same commit SHA" to "Create a merge commit". Merging (instead of rebasing) keeps the original feature-PR commits on main, which:

  • restores correct auto-generated release notes (full PR list + contributors), and
  • re-aligns main with dev's lineage on the next release (the merge commit pulls dev's history back into main).

The same-SHA promise is dropped — it was a leftover from the old fast-forward flow and is not achievable through GitHub's PR merge buttons, none of which fast-forward.

The PR-based flow recommended rebase-merge, which rewrites the feature-PR commits to new SHAs on main. That breaks GitHub's auto-generated release notes (only the release author is credited, no PR list) and diverges main from dev. Switch the guidance to 'Create a merge commit' so main retains the original commits and the release notes generate correctly.
Comment thread release.sh Outdated

@marionbarker marionbarker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve from code review.

@marionbarker marionbarker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marionbarker
marionbarker merged commit f5f2e47 into dev Jul 19, 2026
1 check passed
@marionbarker
marionbarker deleted the release-merge-commit-notes branch July 19, 2026 20:24
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.

2 participants