Skip to content

fix(conventional-commits): prevent PR commits from downgrading merge commit bump#2528

Open
ScottRobinson03 wants to merge 1 commit into
intuit:mainfrom
ScottRobinson03:fix/conventional-commits-merge-bump-override
Open

fix(conventional-commits): prevent PR commits from downgrading merge commit bump#2528
ScottRobinson03 wants to merge 1 commit into
intuit:mainfrom
ScottRobinson03:fix/conventional-commits-merge-bump-override

Conversation

@ScottRobinson03

@ScottRobinson03 ScottRobinson03 commented May 8, 2026

Copy link
Copy Markdown

What Changed

When a PR without a dedicated bump label is squash-merged, the merge commit's bump (derived from the PR title, e.g. feat!:major) is unconditionally overwritten by the highest bump from the individual pre-squash PR commits. This means a feat!: merge commit gets downgraded to minor if the individual commits only contain feat:.

The fix includes the merge commit's own bump in the comparison array so that PR commit bumps can only upgrade the release type, never downgrade it.

Why

Fixes #2527

Squash-merge workflows rely on the PR title as the single source of truth for the release type. The current behaviour silently loses breaking change signals from the merge commit, causing incorrect version bumps.

Todo:

  • Add tests
  • Add docs

Change Type

Indicate the type of change your pull request is:

  • documentation
  • patch
  • minor
  • major

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.

bug(conventional-commits): PR commit bumps override (downgrade) merge commit bump

1 participant