Submatter/plans/Plan-automation-foundation/Epic-connected-repos/Task-shared-forge-schemas.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
612 B
Markdown

---
kind: task
slug: shared-forge-schemas
title: Shared forge types, connected repo schemas, and parseGitRemoteUrl
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
Zod schemas and pure URL parser for pasted git remotes (GitHub, Forgejo, GitLab, Bitbucket).
## Acceptance criteria
- [x] `parseGitRemoteUrl` handles HTTPS and `git@host:owner/repo` forms
- [x] Vitest coverage for GitHub, Forgejo self-hosted, GitLab.com
- [x] Exported from `@tasks/shared/connected-repos`