fix: remove stale HTTP repository access branch

This commit is contained in:
2026-09-13 01:04:46 +09:00
parent f061a95b48
commit 2d512b6be6
2 changed files with 10 additions and 1 deletions
@@ -13,7 +13,7 @@
}
function supportsRepositoryAccess(kind: RepositorySourceKind): boolean {
return kind === 'ssh' || kind === 'http' || kind === 'https';
return kind === 'ssh' || kind === 'https';
}
let showAddRepository = $state(false);
let repositoryKey = $state('');
@@ -255,6 +255,15 @@ Deno.test("Repository settings consume the validated shared wire shape", async (
throw new Error(`Repository settings should include ${token}`);
}
}
for (const kind of ["ssh", "https"]) {
if (!pageSource.includes(`kind === '${kind}'`)) {
throw new Error(`Repository Access should support ${kind}`);
}
}
if (pageSource.includes("kind === 'http'")) {
throw new Error("Repository Access must not support plain HTTP sources");
}
for (
const staleToken of [
"repository.id",