Skip to content

Stub the two missing CHANGELOG.md, lint to prevent drift#499

Merged
RhysSullivan merged 1 commit intomainfrom
changelog-stubs-2
May 4, 2026
Merged

Stub the two missing CHANGELOG.md, lint to prevent drift#499
RhysSullivan merged 1 commit intomainfrom
changelog-stubs-2

Conversation

@RhysSullivan
Copy link
Copy Markdown
Owner

Summary

release.yml crashed again on the same ENOENT, this time at packages/core/vite-plugin/CHANGELOG.md. That package and packages/plugins/example were added in #476 (Spec-driven plugin loading) without stubs — my restore PR (#496) only put back the 31 files that #491 had deleted, so drift was inevitable on the next package addition.

  • Add the two missing stubs.
  • Add scripts/check-changelog-stubs.ts (and bun run lint:changelog-stubs, wired into lint). Fails CI when any workspace package lacks a CHANGELOG.md, with a clear "you can run --fix" message.
  • --fix mode auto-creates stubs from a templated body.

So the next time someone adds a package, lint flags it in their PR rather than release.yml crashing days later.

Test plan

  • bun run lint — clean (script failure path verified by removing a stub and re-running)
  • --fix mode creates the missing stub correctly
  • CI green
  • After merge: release.yml succeeds and opens the Version Packages PR with the 1.4.15 bump

…orward

release.yml failed again on the latest main with the same ENOENT — this
time on `packages/core/vite-plugin/CHANGELOG.md`. That package and
`packages/plugins/example` were added in #476 (Spec-driven plugin
loading) without stubs, after my restore PR (#496) only put back the
files #491 had deleted. Drift was inevitable as soon as the next package
landed.

This PR:
- Adds the two missing stubs.
- Adds `scripts/check-changelog-stubs.ts` and wires it into `bun run
  lint`. Fails CI when any workspace package directory lacks a
  CHANGELOG.md, with a clear message explaining why the stubs exist
  (changesets/action@v1 reads them) and pointing at the `--fix` flag.
- `--fix` mode auto-creates stubs with a templated body.

So the next time someone adds a package, lint flags it in PR rather
than release.yml crashing later.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 4, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing f80f258 Commit Preview URL

Branch Preview URL
May 04 2026, 07:48 AM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 4, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud f80f258 May 04 2026, 07:49 AM

@RhysSullivan RhysSullivan merged commit 54e94b5 into main May 4, 2026
5 of 7 checks passed
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