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
582 B
Markdown
23 lines
582 B
Markdown
---
|
|
kind: task
|
|
slug: forge-adapters-trpc
|
|
title: Forge adapters and connectedRepos tRPC router
|
|
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
|
|
|
|
GitHub and Forgejo/Gitea API adapters plus `api.connectedRepos.*` CRUD and test connection.
|
|
|
|
## Acceptance criteria
|
|
|
|
- [x] `getForgeAdapter()` for github and forgejo
|
|
- [x] `testConnection` fetches default branch and persists metadata
|
|
- [x] Admin-only mutations; all queries filter by `workspace_id`
|