feat(plugins): add source-control extension contracts (#2117)

This commit is contained in:
José Almeida
2026-08-13 08:29:29 +01:00
committed by GitHub
parent 064b852884
commit f218880ecb
530 changed files with 39054 additions and 7518 deletions
@@ -13,7 +13,7 @@ export type WorkspaceSourceRow = {
repositoryId?: string;
localPath?: string;
remoteUrl?: string;
provider?: "github" | "gitlab" | "azure_devops";
provider?: string;
providerRepoId?: string;
providerOwner?: string;
providerName?: string;
@@ -90,7 +90,7 @@ function validateRow(
return null;
}
const locator = repositoryLocator(row);
if (row.remoteUrl && !isValidRemoteUrl(row.remoteUrl)) {
if (row.remoteUrl && !row.provider && !isValidRemoteUrl(row.remoteUrl)) {
return "Enter a valid remote repository URL and base branch.";
}
if (!locator || !row.baseBranch?.trim()) return "Choose a repository and base branch.";