Files
Codewalkers/apps/server/drizzle/0030_add_initiative_pending_review.sql
Lukas May 865e8bffa0 feat: Add initiative review gate before push
When all phases complete, the initiative now transitions to
pending_review status instead of silently stopping. The user
reviews the full initiative diff and chooses:
- Push Branch: push cw/<name> to remote for PR workflows
- Merge & Push: merge into default branch and push

Changes:
- Schema: Add pending_review to initiative status enum
- BranchManager: Add pushBranch port + SimpleGit adapter
- Events: initiative:pending_review, initiative:review_approved
- Orchestrator: checkInitiativeCompletion + approveInitiative
- tRPC: getInitiativeReviewDiff, getInitiativeReviewCommits,
  getInitiativeCommitDiff, approveInitiativeReview
- Frontend: InitiativeReview component in ReviewTab
- Subscriptions: Add initiative events + missing preview/conversation
  event types and subscription procedures
2026-03-05 17:02:17 +01:00

7 lines
414 B
SQL

-- Add 'pending_review' to initiative status enum.
-- SQLite text columns don't enforce enum values at DDL level,
-- so no schema change is needed. This migration exists for documentation
-- and to keep the migration sequence in sync with schema.ts changes.
-- The Drizzle ORM schema definition now includes 'pending_review' in the
-- initiatives.status enum: ['active', 'completed', 'archived', 'pending_review']