ci: monorepo pre-push local CI orchestration#1
Merged
Conversation
- Root scripts/git-pre-push.sh: main/master guard, frontend placeholder, optional RUN_AI_SERVER_CI for ai-server, then api-server pre-push - Commit .githooks/pre-push; just hook sets core.hooksPath; bun run ci:local - ai-server: scripts/pre-push.sh plus format:check, test:ci, ci:local scripts - api-server: GIT_WORKFLOW/TESTING/AGENTS, justfile hook to repo root, pre-push header Made-with: Cursor
cocoyoon
added a commit
that referenced
this pull request
Apr 20, 2026
…dependent first migration (#267) Context m20240101_000001_create_users creates FK public.users.id → auth.users(id). On prod Supabase auth.users exists (managed by GoTrue); on local plain Postgres it doesn't, so the FK creation fails at migration #1. The later decouple migration in this PR would drop the FK, but it never gets a chance to run. Fix New m20230101_000000_local_auth_stub registered at the top of the migration vec. Creates `auth` schema + minimal `auth.users(id uuid PRIMARY KEY)` with IF NOT EXISTS so prod is untouched, local gets a stub the FK can attach to. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 23, 2026
Closed
5 tasks
This was referenced May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a repo-root
pre-pushflow sogit pushruns local checks before the Rust api-server suite.Changes
scripts/git-pre-push.sh:main/masterdirect-push guard, frontend placeholder, optionalRUN_AI_SERVER_CI=1for ai-server, then existingpackages/api-server/scripts/pre-push.sh..githooks/pre-push+just hook/core.hooksPath=.githooks.bun run ci:local.scripts/pre-push.sh,format:check,test:ci,ci:local(opt-in at monorepo level by default).GIT_WORKFLOW.md,TESTING.md,AGENTS.md; api-serverjustfilehook targets monorepo root.Verification
git pushon this branch ran the full hook successfully (fmt, clippy, tests, deny, tarpaulin, migration sync).Made with Cursor