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
612 B
Markdown
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`
|