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>
23 lines
557 B
Markdown
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
|