feat(plugins): add source-control extension contracts (#2117)
This commit is contained in:
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user