Initial commit: DevClaw with Gitea support
This commit is contained in:
@@ -136,10 +136,20 @@ export function createProjectRegisterTool() {
|
||||
|
||||
const healthy = await provider.healthCheck();
|
||||
if (!healthy) {
|
||||
const cliName = providerType === "github" ? "gh" : "glab";
|
||||
const cliInstallUrl = providerType === "github"
|
||||
? "https://cli.github.com"
|
||||
: "https://gitlab.com/gitlab-org/cli";
|
||||
let cliName = "";
|
||||
let cliInstallUrl = "";
|
||||
|
||||
if (providerType === "github") {
|
||||
cliName = "gh";
|
||||
cliInstallUrl = "https://cli.github.com";
|
||||
} else if (providerType === "gitlab") {
|
||||
cliName = "glab";
|
||||
cliInstallUrl = "https://gitlab.com/gitlab-org/cli";
|
||||
} else if (providerType === "gitea") {
|
||||
cliName = "curl";
|
||||
cliInstallUrl = "https://curl.se";
|
||||
}
|
||||
|
||||
throw new Error(
|
||||
`${providerType.toUpperCase()} health check failed for ${repoPath}. ` +
|
||||
`Detected provider: ${providerType}. ` +
|
||||
|
||||
Reference in New Issue
Block a user