Skip to content

fix: replace a PR title whose summary matches no commit - #602

Merged
Shinrai merged 1 commit into
nextfrom
fix/normalize-title-stale-summary
Nov 29, 2026
Merged

Shinrai merged 1 commit into
nextfrom
fix/normalize-title-stale-summary

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch area: core Touches core library / runtime source code type: ci Changes to CI workflows, actions, or build pipelines type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 29, 2026
Shinrai
Shinrai previously approved these changes Nov 29, 2026
normalize-pr-title kept any title whose type still conformed to the range, so after a branch was rewritten (a commit folded into another and force-pushed) the PR kept a title none of its commits had, and the merge commit carried it. A conforming title now also has to match one of the commit subjects' summaries; otherwise it is rewritten from the highest commit, as a non-conforming one is. A title picked from one of several commits, or one that raises a commit's type, is still kept.

Resolves #601
@Shinrai
Shinrai force-pushed the fix/normalize-title-stale-summary branch from 9e9cfce to 207d901 Compare November 29, 2026 06:31
@Shinrai
Shinrai merged commit de8d90a into next Nov 29, 2026
18 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/normalize-title-stale-summary branch November 29, 2026 06:35
cldmv-bot Bot added a commit that referenced this pull request Nov 29, 2026
…sion

# v4.48.0 — 2026-11-29

Minor release: a `release: vX.Y.Z` commit at the end of the release range now sets the version outright, even over breaking commits earlier in the range. The package-layout CommonJS shim keeps `.default` and the ESM names on a single exported value, and the PR-title step replaces a title that no longer matches any of the PR's commits.

## Features

- **A last `release: vX.Y.Z` commit sets the release version.** Before, a breaking commit anywhere in the range forced a major, and an explicit version only counted when the release commit was the only commit. Now, when the newest commit in the range is a plain `release: vX.Y.Z` (optionally ` - <description>` or ` (#N)`), that version wins over every other commit. "Newest" is first-parent order on the branch, skipping the bot's version-bump and lint/format autofix commits; for a PR merge commit the PR's own newest commit counts, so the commit can be pushed straight to `next`/`hotfixes` or merged through a `release/X.Y.Z` PR. A release commit anywhere else in the range keeps the old behaviour, so an old `master` release commit never pins a later release. A version at or below the released version fails the release-PR refresh with an error instead of opening a downgrade or a same-version release, and the already-bumped check now covers explicit versions too. `docs/conventions/release-flow-v4.md` §5.3 describes it. ([#606](#606))

## Bug Fixes

- **The CJS shim keeps `.default` and every ESM name on a single exported value.** When every export of `src/index.mjs` was one function or class (a default plus a named alias, or a single named export), `examples/package-layout/src/index.cjs` returned the bare value, so `require(x).default`, `require(x).Name` and `const { Name } = require(x)` stopped working. The shim now sets `.default` and each exported name on that value, which is the usual CommonJS shape, and leaves a name the value already has (a static of the same name) alone. Entries that export more than one distinct value, or a single primitive, still get the module object. `docs/conventions/package-layout.md` describes the new shape, and `examples/package-layout/index-cjs.test.mjs` covers it from `npm test`. ([#603](#603))
- **A PR title whose summary matches no commit is replaced.** `normalize-pr-title` kept any title whose type still conformed to the PR's commits. When a branch was rewritten (a commit folded into another and force-pushed), the PR kept a title none of its commits had, and the merge commit carried it. A conforming title now also has to match the summary of one of the commit subjects; otherwise it is rebuilt from the highest commit, as a non-conforming title is. A title picked from one of several commits, or one that raises a commit's type, is still kept. Fixes [#601](#601) ([#602](#602))

## Documentation

- `docs/conventions/package-layout.md`: the shim table and the rule on attaching names ([#603](#603)).
- `docs/conventions/release-flow-v4.md` §5.3: setting the version with a `release:` commit ([#606](#606)).
- `docs/conventions/release-flow-v4.md` §6.4: the title normalizer's keep and rewrite rules ([#602](#602)).
- **NEW:** [docs/changelogs/v4.48.0.md](https://github.com/CLDMV/.github/blob/v4.48.0/docs/changelogs/v4.48.0.md), this changelog.
- README What's New promoted to v4.48.0.

## Upgrade notes

- Repos that copied the old shim body update their `src/index.cjs` from `examples/package-layout/src/index.cjs`. For a package whose ESM entry exports a single function or class, `require()` gains `.default` and the export names. Other packages see no change.
- To set a release's version by hand, merge everything else (the changelog included) first, then push `release: vX.Y.Z` as the last commit on `next`.
- Nothing else to change in consumer repos. The title rule applies on the next push to a feature branch once `@v4` moves.



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant