Submatter/plans/Plan-automation-foundation/Epic-connected-repos/Task-db-connected-repos-migration.md
Randall Stillwell 30c4e533e8 feat(automation): connected repos — paste remote URL and forge adapters (Epic 3)
Workspace admins connect git remotes via settings UI; forge type is inferred
from the URL, API tokens stay env-var references, and test connection fetches
default branch for orchestrator/worker consumers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 14:45:40 -05:00

23 lines
557 B
Markdown

---
kind: task
slug: db-connected-repos-migration
title: Drizzle schema and migration for connected_repos
plan_slug: automation-foundation
epic_slug: connected-repos
status: done
priority: P1
tenant_id: global
owner: unassigned
cursor_todo_id: null
updated_at: "2026-07-07"
---
# Task summary
Workspace-scoped `connected_repos` table with forge metadata and env-var token reference.
## Acceptance criteria
- [x] Migration `0012` generated via `pnpm db:generate`
- [x] Unique constraint per workspace + api base + owner + repo
- [x] `workspace_id` index