feat(changelog): U2 — changeset format linter + CI wiring

Add scripts/check-changeset-format.mjs:
- Validates structured changeset schema across .changeset/*.md
- Legacy changesets warn (exit 0) in transition mode
- Structured changesets with missing/invalid fields error (exit 1)
- --strict flag fails on legacy changesets

Wire into package.json (check:changesets, pretest, test:gate) and
pr-checks.yml lint job. Fix parser to not default category on
structured changesets missing the field.

10 linter tests + 18 schema tests all passing.
This commit is contained in:
gsxdsm
2026-06-23 23:30:32 -07:00
parent 5676d95fd0
commit 8317684aff
5 changed files with 298 additions and 4 deletions

View File

@@ -44,6 +44,9 @@ jobs:
- name: Lint
run: pnpm lint
- name: Changeset format
run: pnpm check:changesets
typecheck:
name: Typecheck
runs-on: ubuntu-latest