Skip to content

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

Open
bjorkert wants to merge 1 commit into
devfrom
release-merge-commit-notes
Open

release.sh: use merge-commit for release PRs to preserve release notes#687
bjorkert wants to merge 1 commit 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.
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