- Rename shared/server status fields and detectors from hostingProvider to sourceControlProvider - Move provider schema into contracts/sourceControl and update status/event tests - Refresh branch toolbar labels from switchRef to checkout
Showing the changes to apps/server/src/sourceControl (1 of 12 files). Show all
Unified · Split
| @@ -1,7 +1,7 @@ | |||
| 1 | import { Cache, Context, Duration, Effect, Exit, Layer } from "effect"; | 1 | import { Cache, Context, Duration, Effect, Exit, Layer } from "effect"; |
| 2 | import { SourceControlProviderError } from "@t3tools/contracts"; | 2 | import { SourceControlProviderError } from "@t3tools/contracts"; |
| 3 | import type { SourceControlProviderKind } from "@t3tools/contracts"; | 3 | import type { SourceControlProviderKind } from "@t3tools/contracts"; |
| 4 | import { detectGitHostingProviderFromRemoteUrl } from "@t3tools/shared/git"; | 4 | import { detectSourceControlProviderFromGitRemoteUrl } from "@t3tools/shared/git"; |
| 5 | 5 | ||
| 6 | import { SourceControlProvider, type SourceControlProviderShape } from "./SourceControlProvider.ts"; | 6 | import { SourceControlProvider, type SourceControlProviderShape } from "./SourceControlProvider.ts"; |
| 7 | import * as GitHubSourceControlProvider from "./GitHubSourceControlProvider.ts"; | 7 | import * as GitHubSourceControlProvider from "./GitHubSourceControlProvider.ts"; |
| @@ -98,7 +98,7 @@ export const make = Effect.fn("makeSourceControlProviderRegistry")(function* () · 90 unmodified lines | |||
| 98 | return "unknown" as const; | 98 | return "unknown" as const; |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | return detectGitHostingProviderFromRemoteUrl(remoteUrl)?.kind ?? "unknown"; | 101 | return detectSourceControlProviderFromGitRemoteUrl(remoteUrl)?.kind ?? "unknown"; |
| 102 | }, | 102 | }, |
| 103 | ); | 103 | ); |
| 104 | 104 | ||