History

feat(source-control): add Bitbucket & Azure Devops providers (#2473)

Julius Marminge committed 6 months agov0.0.22-nightly.20260504.196

Commit 91a03e01 parent d501ebe59 files · +5834 −2327Browse files

Showing the changes to apps/server/src/sourceControl/SourceControlRepositoryService.ts (1 of 59 files). Show all

Unified · Split

apps/server/src/sourceControl/SourceControlRepositoryService.ts+7−7
@@ -1,4 +1,4 @@
1−import OS from "node:os";
1+import * as NodeOS from "node:os";
22 import { Context, Effect, FileSystem, Layer, Path, Schema } from "effect";
33
44 import {
@@ -15,8 +15,8 @@ import { · 10 unmodified lines
1515 } from "@t3tools/contracts";
1616
1717 import { ServerConfig } from "../config.ts";
18−import { GitVcsDriver } from "../vcs/GitVcsDriver.ts";
19−import { SourceControlProviderRegistry } from "./SourceControlProviderRegistry.ts";
18+import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";
19+import * as SourceControlProviderRegistry from "./SourceControlProviderRegistry.ts";
2020
2121 export interface SourceControlRepositoryServiceShape {
2222 readonly lookupRepository: (
@@ -102,10 +102,10 @@ function selectRemoteUrl( · 79 unmodified lines
102102
103103 function expandHomePath(input: string, path: Path.Path): string {
104104 if (input === "~") {
105− return OS.homedir();
105+ return NodeOS.homedir();
106106 }
107107 if (input.startsWith("~/") || input.startsWith("~\\")) {
108− return path.join(OS.homedir(), input.slice(2));
108+ return path.join(NodeOS.homedir(), input.slice(2));
109109 }
110110 return input;
111111 }
@@ -113,9 +113,9 @@ function expandHomePath(input: string, path: Path.Path): string { · 1 unmodified line
113113 export const make = Effect.fn("makeSourceControlRepositoryService")(function* () {
114114 const config = yield* ServerConfig;
115115 const fileSystem = yield* FileSystem.FileSystem;
116− const git = yield* GitVcsDriver;
116+ const git = yield* GitVcsDriver.GitVcsDriver;
117117 const path = yield* Path.Path;
118− const providers = yield* SourceControlProviderRegistry;
118+ const providers = yield* SourceControlProviderRegistry.SourceControlProviderRegistry;
119119
120120 const ensureConcreteProvider = (input: {
121121 readonly operation: string;