Skip to content

feat(ci): schema-drift deploy gate (recipe + script)#483

Open
seonghobae wants to merge 1 commit into
mainfrom
feat/ci-drift-recipe
Open

feat(ci): schema-drift deploy gate (recipe + script)#483
seonghobae wants to merge 1 commit into
mainfrom
feat/ci-drift-recipe

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

Independent PR against main (docs + script; pairs with #465's diff/migration endpoints). Gates deploys on "schema matches the approved baseline": docs/ci-drift-check.md (workflow + GitHub Actions example) and scripts/ci/check_schema_drift.sh — exit 0 no drift, 1 drift (prints structured summary and the reconciling migration SQL), 2 missing/unauthorized. CI/CD integration is the stickiest use case for the snapshot/diff APIs. Script syntax + extraction paths verified.

🤖 Generated with Claude Code

P0 roadmap item. docs/ci-drift-check.md documents gating deploys on 'schema matches the approved baseline' via GET /diff?against= (has_changes) with exit-code semantics, plus a ready-made scripts/ci/check_schema_drift.sh (0 = no drift, 1 = drift + prints summary & reconciling migration.sql, 2 = missing/unauthorized) and a GitHub Actions example. Script syntax + JSON extraction paths verified. Depends only on the diff/migration endpoints (#465).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AxU2xaupAjp912oDNFuWyd
@seonghobae seonghobae enabled auto-merge (squash) July 6, 2026 08:52
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