Add Gitea as a git provider for harness workspace repositories
Some checks failed
CI / lint-and-test (push) Successful in 30s
CI / build (push) Has been cancelled
Deploy Production / deploy (push) Has been cancelled

Support Gitea alongside GitHub/GitLab for repo search, authenticated
cloning, and pull request creation via Gitea API. Tasks can specify
gitProvider and gitBaseUrl in their spec (defaults to github for
backwards compat). Auto-discovers GITEA_TOKEN from env on boot.
This commit is contained in:
Julia McGhee
2026-03-21 20:33:24 +00:00
parent 11192da432
commit a687652bcd
6 changed files with 106 additions and 10 deletions

View File

@@ -3,10 +3,10 @@ import { db } from "./db";
import { credentials as credentialsTable } from "@homelab/db";
export type Provider =
| "github" | "gitlab"
| "github" | "gitlab" | "gitea"
| "anthropic" | "openai" | "openrouter" | "google" | "opencode-zen" | "opencode-go";
export const GIT_PROVIDERS: Provider[] = ["github", "gitlab"];
export const GIT_PROVIDERS: Provider[] = ["github", "gitlab", "gitea"];
export const AI_PROVIDERS: Provider[] = ["anthropic", "openai", "openrouter", "google", "opencode-zen", "opencode-go"];
export interface Credential {