Add Gitea as a git provider for harness workspace repositories
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user