Skip to content

Move changelog entries to fragments in changelog.d - #46

Merged
amcclain merged 6 commits into
developfrom
changelog-fragments
Nov 24, 2026
Merged

amcclain merged 6 commits into
developfrom
changelog-fragments

Conversation

@amcclain

@amcclain amcclain commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Every PR edits the top of CHANGELOG.md, so parallel PRs conflict, and a PR that merges after a release can land its entries under the version that just shipped. This PR moves new entries to per-branch fragment files in changelog.d/, which a release assembles into CHANGELOG.md. hoist-react uses the same setup.

  • Added changelog.d/ with its config, a short README and a fragment for this change. CHANGELOG.md keeps its empty 4.0.0-SNAPSHOT heading.
  • Added a pnpm changelog script, which runs xh-changelog. Raised @xh/hoist-dev-utils to 16.6, the first release with that command.
  • Added a Changelog workflow. It runs the shared check-changelog action on each PR.
  • Deploy Snapshot runs pnpm changelog snapshot before it publishes, so a snapshot's CHANGELOG.md lists its unreleased entries.
  • Deploy Release fails if CHANGELOG.md lacks the version or fragments are left over.
  • Pinned all shared hoist-dev-utils actions to the 16.6.0 commit. GitHub releases now lead with the version's CHANGELOG.md notes.
  • Updated AGENTS.md, docs/changelog-format.md, docs/build-and-publish.md, the PR template and the triage skill for fragments. They link to the hoist-dev-utils README for how xh-changelog works, as hoist-react does.
  • The docs test skips changelog.d/ in its README index check. changelog.d/ is not in files, so the package does not ship it.

To verify, run pnpm changelog check and pnpm changelog preview.

Hoist Chat Kit P/R Checklist

Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to show they were considered. If unclear if a step is relevant, leave it unchecked and
note it in comments.

  • Caught up with develop branch as of last change.
  • Added a changelog fragment in changelog.d/, or determined not required.
  • Reviewed for breaking changes, added breaking-change label + changelog fragment if so.
  • Updated docs (doc comments, README, index, registry), or determined not required.
  • Added or updated unit tests, or determined not required.
  • Reviewed and tested on Mobile, or determined not required.
  • Tested in a consuming app, or determined not required.

If your change is still a WIP, use the "Create draft pull request" option in the split button
below to show it is not ready yet for a final review.

Pull request reviewers: when merging this P/R, consider using a squash commit to collapse
intermediate commits into a single commit for the overall change. PRs with a single commit
should be rebased when possible.

- changelog.d/ with config, README and a fragment for this change. CHANGELOG.md keeps its bare 4.0.0-SNAPSHOT heading.
- pnpm changelog runs xh-changelog from hoist-dev-utils. A new Changelog workflow checks fragments on each PR.
- Deploy Snapshot runs pnpm changelog snapshot before publish, so a snapshot's CHANGELOG.md lists its unreleased entries.
- AGENTS.md, docs, the PR template and the triage skill point at changelog.d/.

Requires hoist-dev-utils 17 for pnpm changelog and the snapshot step.
Pin all shared hoist-dev-utils actions to the 16.6.0 commit. The release action now leads each GitHub release with its CHANGELOG.md notes.
@amcclain
amcclain marked this pull request as ready for review November 24, 2026 20:02
Match hoist-react, which keeps facts about how xh-changelog works only in the hoist-dev-utils README.

- Slim changelog.d/README.md to the pointer that xh-changelog init writes.
- Cut the command list from changelog-format.md and the release behavior from build-and-publish.md. Link the dev-utils README instead.
- Trim the AGENTS.md changelog and publishing summaries to the essentials.
- Remove every mention of pnpm changelog new, which hoist-dev-utils 16.6 dropped.
- Note that GitHub releases now lead with CHANGELOG.md notes, and that hotfix branches cut from v3.0.0 or earlier still edit CHANGELOG.md directly.
@amcclain
amcclain merged commit a8ad919 into develop Nov 24, 2026
4 checks passed
@amcclain
amcclain deleted the changelog-fragments branch November 24, 2026 20:10
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