Environment details
- OS: macOS 13.1
- Node.js version: 16.14.0
- npm version: 8.5.4
release-please version: 15.9.2
Steps to reproduce
- Make a commit to branch
foo that's designated as a breaking change with a commit message like feat!: rewrite in rust
- Create a PR to merge
foo into main
- Merge
foo to your main branch along with a merge commit with git merge --no-ff foo. This is GitHub's behaviour when merging a PR with the 'Create a merge commit' dropdown option.
- Try to override the semver resolution to only do a minor version bump by overriding the commit message in the PR body with something like
BEGIN_COMMIT_OVERRIDE
feat: rewrite in rust
END_COMMIT_OVERRIDE
- Note that the PR generated by release-please is still treating the change as a major version bump.
This is because only the merge commit has a pullRequest associated with it, and so only the merge commit is overridden, whilst the rest of the commits merged in are preserved. So in this example the commits from this merge will be overridden from
Merge pull request #1 from example/repository
feat!: rewrite in rust
to
feat: rewrite in rust
feat!: rewrite in rust
So the major version bump from the original commit message wins out.
This means that it isn't possible to drop a change from a major version bump to a minor version bump via the PR body if you selected GitHub's 'Create a merge commit' option rather than its 'Squash and merge' option, even though both are stated to be supported by release-please.
Environment details
release-pleaseversion: 15.9.2Steps to reproduce
foothat's designated as a breaking change with a commit message likefeat!: rewrite in rustfoointomainfooto yourmainbranch along with a merge commit withgit merge --no-ff foo. This is GitHub's behaviour when merging a PR with the 'Create a merge commit' dropdown option.This is because only the merge commit has a
pullRequestassociated with it, and so only the merge commit is overridden, whilst the rest of the commits merged in are preserved. So in this example the commits from this merge will be overridden fromto
So the major version bump from the original commit message wins out.
This means that it isn't possible to drop a change from a major version bump to a minor version bump via the PR body if you selected GitHub's 'Create a merge commit' option rather than its 'Squash and merge' option, even though both are stated to be supported by release-please.