Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): skip PR lookup for unknown providers #5831

ClosedLucenx9(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/5831/headopened View on GitHub

Showing 2 changed files with 209 additions and 7 deletions (loading 1).

x
0 of 2 viewed, 2 left
209 additions and 7 deletionsapps/server/src/git/GitManager.test.tsModified
View file
@@ -14,6 +14,7 @@
import * as PlatformError from "effect/PlatformError";
import * as References from "effect/References";
import * as Scope from "effect/Scope";
+import * as TestClock from "effect/testing/TestClock";
import { ChildProcessSpawner } from "effect/unstable/process";
import { expect } from "vite-plus/test";
import type {
@@ -27,6 +28,7 @@
GitCommandError,
ProviderDriverKind,
ProviderInstanceId,
+ type SourceControlProviderKind,
TextGenerationError,
} from "@t3tools/contracts";
import * as GitHubCli from "../sourceControl/GitHubCli.ts";
@@ -620,6 +622,7 @@
textGeneration?: Partial<FakeGitTextGeneration>;
serverSettings?: Parameters<typeof ServerSettings.layerTest>[0];
setupScriptRunner?: ProjectSetupScriptRunner.ProjectSetupScriptRunner["Service"];
+ sourceControlProviderKind?: SourceControlProviderKind | (() => SourceControlProviderKind);
}) {
const { service: gitHubCli, ghCalls } = createGitHubCliWithFakeGh(input?.ghScenario);
const textGeneration = createTextGeneration(input?.textGeneration);
@@ -637,14 +640,22 @@
const sourceControlRegistryLayer = Layer.effect(
SourceControlProviderRegistry.SourceControlProviderRegistry,