Skip to content

ci: require a changeset when shippable src changes (GH #189 post-mortem)#192

Merged
Lykhoyda merged 1 commit into
mainfrom
chore/ci-require-changeset
May 30, 2026
Merged

ci: require a changeset when shippable src changes (GH #189 post-mortem)#192
Lykhoyda merged 1 commit into
mainfrom
chore/ci-require-changeset

Conversation

@Lykhoyda

Copy link
Copy Markdown
Owner

What

A PR-only CI guard that fails when shippable MCP source (scripts/cdp-bridge/src/) changes without a changeset.

Why

Direct follow-up to the #189 / v0.44.45 post-mortem: #188 merged a real behavior fix (the runFlow allowlist) to main with no version bump, so it never reached marketplace installs and was re-reported as #189. The fix existed — it was just undeliverable. This makes that class of mistake impossible rather than relying on remembering to bump.

How

  • scripts/require-changeset.sh — diffs the PR vs base; if any scripts/cdp-bridge/src/ file changed, requires ≥1 .changeset/*.md. Seams: CHANGED_FILES, REPO_ROOT, BASE_REF. Fails-open on infra errors (won't spuriously block).
  • scripts/test/require-changeset.test.sh — 4-case TDD regression test (src+no-changeset → fail; src+changeset → pass; non-src → pass; empty → pass). Run in the Build & Test job.
  • ci.yml — new require-changeset job (PR-only). github.base_ref is passed via env + a quoted shell var (no ${{ }} interpolation into run:).

Scope / notes

  • Excludes tests, docs, CI, and the .claude-plugin manifest (the manifest is the changeset output).
  • This PR touches no cdp-bridge/src/, so it passes its own gate (verified locally against main).
  • Does not fix the stale root CHANGELOG.md (diverged from the changesets per-package logs) — flagged as separate cleanup.

🤖 Generated with Claude Code

#188 merged a behavior fix (runFlow allowlist) to main with NO version bump, so
it was undeliverable to marketplace installs and got re-reported as #189. Add a
PR-only CI job that fails when scripts/cdp-bridge/src/ changes without a changeset
— making the missing-bump class impossible rather than merely discouraged.

- scripts/require-changeset.sh: the guard (seams: CHANGED_FILES, REPO_ROOT, BASE_REF)
- scripts/test/require-changeset.test.sh: 4-case TDD regression test
- ci.yml: PR-only require-changeset job + run the guard unit test in the build job

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Lykhoyda Lykhoyda merged commit 7cfa46b into main May 30, 2026
8 checks passed
@Lykhoyda Lykhoyda deleted the chore/ci-require-changeset branch May 30, 2026 23:05
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