Skip to content

chore: derive release bump only from the title bang marker#66

Merged
mogita merged 2 commits into
masterfrom
fix/release-bump-only-bang
Jun 22, 2026
Merged

chore: derive release bump only from the title bang marker#66
mogita merged 2 commits into
masterfrom
fix/release-bump-only-bang

Conversation

@mogita

@mogita mogita commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Problem

The release workflow's determine_bump_type forced a major bump whenever the substring BREAKING CHANGE appeared anywhere in the PR title or body (/BREAKING[ -]CHANGE/i over free text). Any PR that merely mentions the phrase trips it. PR #65 was meant to be a minor (7.2.0) but cut 8.0.0 because its body contained the sentence "no BREAKING CHANGE marker".

Fix

Trust only the conventional-commits ! marker in the title (e.g. feat!:) as the breaking-change signal. Stop reading the PR body entirely, and remove the now-dead --body / --body-file options plus the body plumbing in release.yml.

Bump rules after this change (title-only):

  • feat!: / fix!: / type(scope)!: -> major
  • feat: -> minor
  • fix: / bug: -> patch
  • anything else -> no release

Docs

  • Updated the README "Release Process" section to drop the "BREAKING CHANGE in the PR body/title" rule and state the bump is derived from the title ! marker only.

Verification

Drove the real CLI across cases (argv array, no shell mangling):

  • feat: ... -> minor, feat!: ... -> major, feat(mod)!: ... -> major, fix!: ... -> major, fix: ... -> patch, chore: ... -> none
  • feat: mentions BREAKING CHANGE -> minor (the regression), BREAKING CHANGE: prose title -> none

rubocop: no offenses.

The release workflow scanned the PR title and body for the substring
"BREAKING CHANGE" and forced a major bump on any match. Prose that merely
mentioned the phrase, including a sentence stating there was no breaking
change, tripped it: PR #65 was intended as a minor (7.2.0) but cut 8.0.0.

Treat the `!` marker in the conventional-commits title (e.g. `feat!:`) as the
sole breaking-change signal and stop reading the PR body entirely. Drop the
now-unused --body / --body-file options and the body plumbing in release.yml.
@mogita mogita changed the title fix: derive release bump only from the title bang marker chore: derive release bump only from the title bang marker Jun 22, 2026
The Release Process section claimed a "BREAKING CHANGE" mention in the PR
body/title forces a major bump. The workflow now derives the bump from the
title's `!` marker only and ignores the body. Update the rules accordingly.
@mogita mogita force-pushed the fix/release-bump-only-bang branch from 84fc69d to 2a0e361 Compare June 22, 2026 13:03
@mogita mogita merged commit b76596a into master Jun 22, 2026
7 checks passed
@mogita mogita deleted the fix/release-bump-only-bang branch June 22, 2026 13:15
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