refactor(contracts): source control provider kind is an open branded slug (#17739)
Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
dacd2cb649
commit
fd3549c8ff
74 files changed
+816
-551
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { SourceControlProviderKind } from "@t3tools/contracts";
|
||||
import { assert, it, vi } from "@effect/vitest";
|
||||
import * as NodeServices from "@effect/platform-node/NodeServices";
|
||||
import * as ConfigProvider from "effect/ConfigProvider";
|
||||
@@ -362,7 +363,7 @@ it.effect.each([false, true])(
|
||||
? {
|
||||
context: {
|
||||
provider: {
|
||||
kind: "bitbucket" as const,
|
||||
kind: SourceControlProviderKind.make("bitbucket"),
|
||||
name: "Bitbucket",
|
||||
baseUrl: "https://bitbucket.org",
|
||||
},
|
||||
@@ -396,7 +397,11 @@ it.effect("prefers an explicit repository and uses context when the repository i
|
||||
return Effect.gen(function* () {
|
||||
const bitbucket = yield* BitbucketApi.BitbucketApi;
|
||||
const context = {
|
||||
provider: { kind: "bitbucket" as const, name: "Bitbucket", baseUrl: "https://bitbucket.org" },
|
||||
provider: {
|
||||
kind: SourceControlProviderKind.make("bitbucket"),
|
||||
name: "Bitbucket",
|
||||
baseUrl: "https://bitbucket.org",
|
||||
},
|
||||
remoteName: "origin",
|
||||
remoteUrl: "[email protected]:another/context.git",
|
||||
};
|
||||
@@ -838,7 +843,7 @@ it.effect("checks out same-repository pull requests with the existing Bitbucket
|
||||
cwd: "/repo",
|
||||
context: {
|
||||
provider: {
|
||||
kind: "bitbucket",
|
||||
kind: SourceControlProviderKind.make("bitbucket"),
|
||||
name: "Bitbucket",
|
||||
baseUrl: "https://bitbucket.org",
|
||||
},
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { SourceControlProviderKind } from "@t3tools/contracts";
|
||||
import { assert, it } from "@effect/vitest";
|
||||
import * as NodeServices from "@effect/platform-node/NodeServices";
|
||||
import * as Effect from "effect/Effect";
|
||||
@@ -176,37 +177,37 @@ it.effect("reports implemented tools separately from locally available executabl
|
||||
})),
|
||||
[
|
||||
{
|
||||
kind: "github",
|
||||
kind: SourceControlProviderKind.make("github"),
|
||||
status: "available",
|
||||
auth: "authenticated",
|
||||
account: Option.some("juliusmarminge"),
|
||||
},
|
||||
{
|
||||
kind: "gitlab",
|
||||
kind: SourceControlProviderKind.make("gitlab"),
|
||||
status: "missing",
|
||||
auth: "unknown",
|
||||
account: Option.none(),
|
||||
},
|
||||
{
|
||||
kind: "azure-devops",
|
||||
kind: SourceControlProviderKind.make("azure-devops"),
|
||||
status: "missing",
|
||||
auth: "unknown",
|
||||
account: Option.none(),
|
||||
},
|
||||
{
|
||||
kind: "bitbucket",
|
||||
kind: SourceControlProviderKind.make("bitbucket"),
|
||||
status: "available",
|
||||
auth: "unauthenticated",
|
||||
account: Option.none(),
|
||||
},
|
||||
{
|
||||
kind: "forgejo",
|
||||
kind: SourceControlProviderKind.make("forgejo"),
|
||||
status: "missing",
|
||||
auth: "unknown",
|
||||
account: Option.none(),
|
||||
},
|
||||
{
|
||||
kind: "gitcafe",
|
||||
kind: SourceControlProviderKind.make("gitcafe"),
|
||||
status: "missing",
|
||||
auth: "unknown",
|
||||
account: Option.none(),
|
||||
@@ -327,37 +328,37 @@ Logged in to gitlab.com as gitlab-user
|
||||
})),
|
||||
[
|
||||
{
|
||||
kind: "github",
|
||||
kind: SourceControlProviderKind.make("github"),
|
||||
auth: "authenticated",
|
||||
account: Option.some("octocat"),
|
||||
detail: Option.none(),
|
||||
},
|
||||
{
|
||||
kind: "gitlab",
|
||||
kind: SourceControlProviderKind.make("gitlab"),
|
||||
auth: "authenticated",
|
||||
account: Option.some("gitlab-user"),
|
||||
detail: Option.none(),
|
||||
},
|
||||
{
|
||||
kind: "azure-devops",
|
||||
kind: SourceControlProviderKind.make("azure-devops"),
|
||||
auth: "authenticated",
|
||||
account: Option.some("[email protected]"),
|
||||
detail: Option.none(),
|
||||
},
|
||||
{
|
||||
kind: "bitbucket",
|
||||
kind: SourceControlProviderKind.make("bitbucket"),
|
||||
auth: "authenticated",
|
||||
account: Option.some("bitbucket-user"),
|
||||
detail: Option.none(),
|
||||
},
|
||||
{
|
||||
kind: "forgejo",
|
||||
kind: SourceControlProviderKind.make("forgejo"),
|
||||
auth: "authenticated",
|
||||
account: Option.some("forgejo-user"),
|
||||
detail: Option.none(),
|
||||
},
|
||||
{
|
||||
kind: "gitcafe",
|
||||
kind: SourceControlProviderKind.make("gitcafe"),
|
||||
auth: "authenticated",
|
||||
account: Option.some("cafe-user"),
|
||||
detail: Option.none(),
|
||||
@@ -528,7 +529,11 @@ it.effect(
|
||||
reference: "42",
|
||||
force: true,
|
||||
context: {
|
||||
provider: { kind: "forgejo", name: "Forgejo", baseUrl: "https://forgejo.test" },
|
||||
provider: {
|
||||
kind: SourceControlProviderKind.make("forgejo"),
|
||||
name: "Forgejo",
|
||||
baseUrl: "https://forgejo.test",
|
||||
},
|
||||
remoteName: "origin",
|
||||
remoteUrl: "[email protected]:maria/project.git",
|
||||
},
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { SourceControlProviderKind } from "@t3tools/contracts";
|
||||
import { assert, it } from "@effect/vitest";
|
||||
import * as NodeServices from "@effect/platform-node/NodeServices";
|
||||
import * as DateTime from "effect/DateTime";
|
||||
@@ -154,7 +155,7 @@ it.effect("routes directly by provider kind for remote-first workflows", () =>
|
||||
remotes: [],
|
||||
});
|
||||
|
||||
const provider = yield* registry.get("github");
|
||||
const provider = yield* registry.get(SourceControlProviderKind.make("github"));
|
||||
|
||||
assert.strictEqual(provider.kind, "github");
|
||||
}),
|
||||
@@ -163,7 +164,7 @@ it.effect("routes directly by provider kind for remote-first workflows", () =>
|
||||
it.effect("includes the request cwd when an unregistered provider is used", () =>
|
||||
Effect.gen(function* () {
|
||||
const registry = yield* makeRegistry({ remotes: [] });
|
||||
const provider = yield* registry.get("unknown");
|
||||
const provider = yield* registry.get(SourceControlProviderKind.make("unknown"));
|
||||
|
||||
const error = yield* provider
|
||||
.getChangeRequest({ cwd: "/repo", reference: "#42" })
|
||||
@@ -257,7 +258,7 @@ it.effect("refines the caller-selected remote instead of choosing another config
|
||||
cwd: "/repo",
|
||||
context: {
|
||||
provider: {
|
||||
kind: "unknown",
|
||||
kind: SourceControlProviderKind.make("unknown"),
|
||||
name: "self-hosted.example.test",
|
||||
baseUrl: "https://self-hosted.example.test",
|
||||
},
|
||||
@@ -412,7 +413,7 @@ it.effect.each([
|
||||
},
|
||||
});
|
||||
const handle = yield* registry.resolveHandle({ cwd: "/repo" });
|
||||
assert.strictEqual(handle.provider.kind, scenario.expected);
|
||||
assert.strictEqual(handle.provider.kind, SourceControlProviderKind.make(scenario.expected));
|
||||
assert.strictEqual(handle.context?.provider.baseUrl, "https://code.example.test");
|
||||
assert.deepStrictEqual(hosts, ["code.example.test"]);
|
||||
// Recognition goes through the credential layer; gh is only one of its sources.
|
||||
@@ -437,7 +438,7 @@ it.effect("skips GitHub discovery for the identity resolver's empty base URL", (
|
||||
},
|
||||
});
|
||||
const context = {
|
||||
provider: { kind: "unknown" as const, name: "Unknown", baseUrl: "" },
|
||||
provider: { kind: SourceControlProviderKind.make("unknown"), name: "Unknown", baseUrl: "" },
|
||||
remoteName: "origin",
|
||||
remoteUrl,
|
||||
};
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { SourceControlProviderKind } from "@t3tools/contracts";
|
||||
import * as Cache from "effect/Cache";
|
||||
import * as Context from "effect/Context";
|
||||
import * as Duration from "effect/Duration";
|
||||
@@ -8,7 +9,7 @@ import {
|
||||
SourceControlProviderError,
|
||||
type SourceControlProviderDiscoveryItem,
|
||||
} from "@t3tools/contracts";
|
||||
import type { SourceControlProviderKind } from "@t3tools/contracts";
|
||||
import type {} from "@t3tools/contracts";
|
||||
import { detectSourceControlProviderFromRemoteUrl } from "@t3tools/shared/sourceControl";
|
||||
|
||||
import * as BuiltInDrivers from "./builtInDrivers.ts";
|
||||
@@ -214,7 +215,7 @@ export const makeWithProviders = Effect.fn("makeSourceControlProviderRegistryWit
|
||||
Effect.mapError(
|
||||
(error) =>
|
||||
new SourceControlProviderError({
|
||||
provider: "unknown",
|
||||
provider: SourceControlProviderKind.make("unknown"),
|
||||
operation: "detectProvider",
|
||||
cwd,
|
||||
detail: "Failed to detect source control provider.",
|
||||
@@ -226,7 +227,7 @@ export const makeWithProviders = Effect.fn("makeSourceControlProviderRegistryWit
|
||||
Effect.mapError(
|
||||
(error) =>
|
||||
new SourceControlProviderError({
|
||||
provider: "unknown",
|
||||
provider: SourceControlProviderKind.make("unknown"),
|
||||
operation: "detectProvider",
|
||||
cwd,
|
||||
detail: "Failed to detect source control provider.",
|
||||
@@ -265,7 +266,7 @@ export const makeWithProviders = Effect.fn("makeSourceControlProviderRegistryWit
|
||||
})
|
||||
).pipe(
|
||||
Effect.map((context) => {
|
||||
const kind = context?.provider.kind ?? "unknown";
|
||||
const kind = context?.provider.kind ?? SourceControlProviderKind.make("unknown");
|
||||
const provider = providers.get(kind) ?? unsupportedProvider(kind);
|
||||
return {
|
||||
provider: bindProviderContext(provider, context),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { SourceControlProviderKind } from "@t3tools/contracts";
|
||||
import * as NodePath from "@effect/platform-node/NodePath";
|
||||
import * as NodeServices from "@effect/platform-node/NodeServices";
|
||||
import { assert, it } from "@effect/vitest";
|
||||
@@ -37,7 +38,7 @@ function makeProvider(
|
||||
>;
|
||||
|
||||
return {
|
||||
kind: "github",
|
||||
kind: SourceControlProviderKind.make("github"),
|
||||
listChangeRequests: () => unsupported("listChangeRequests"),
|
||||
getChangeRequest: () => unsupported("getChangeRequest"),
|
||||
createChangeRequest: () => unsupported("createChangeRequest"),
|
||||
@@ -114,19 +115,22 @@ it.effect("looks up repositories through the requested provider without search",
|
||||
return Effect.gen(function* () {
|
||||
const service = yield* SourceControlRepositoryService.SourceControlRepositoryService;
|
||||
const result = yield* service.lookupRepository({
|
||||
provider: "github",
|
||||
provider: SourceControlProviderKind.make("github"),
|
||||
repository: "octocat/t3code",
|
||||
cwd: "/workspace",
|
||||
});
|
||||
|
||||
assert.deepStrictEqual(result, { provider: "github", ...CLONE_URLS });
|
||||
assert.deepStrictEqual(result, {
|
||||
provider: SourceControlProviderKind.make("github"),
|
||||
...CLONE_URLS,
|
||||
});
|
||||
assert.deepStrictEqual(calls, [{ cwd: "/workspace", repository: "octocat/t3code" }]);
|
||||
}).pipe(Effect.provide(layer({ provider })));
|
||||
});
|
||||
|
||||
it.effect("preserves provider failures without deriving the repository message from them", () => {
|
||||
const providerCause = new SourceControlProviderError({
|
||||
provider: "github",
|
||||
provider: SourceControlProviderKind.make("github"),
|
||||
operation: "getRepositoryCloneUrls",
|
||||
cwd: "/workspace",
|
||||
repository: "octocat/t3code",
|
||||
@@ -140,7 +144,7 @@ it.effect("preserves provider failures without deriving the repository message f
|
||||
const service = yield* SourceControlRepositoryService.SourceControlRepositoryService;
|
||||
const error = yield* Effect.flip(
|
||||
service.lookupRepository({
|
||||
provider: "github",
|
||||
provider: SourceControlProviderKind.make("github"),
|
||||
repository: "octocat/t3code",
|
||||
cwd: "/workspace",
|
||||
}),
|
||||
@@ -176,7 +180,7 @@ it.effect(
|
||||
yield* Effect.gen(function* () {
|
||||
const service = yield* SourceControlRepositoryService.SourceControlRepositoryService;
|
||||
const input = {
|
||||
provider: "bitbucket" as const,
|
||||
provider: SourceControlProviderKind.make("bitbucket"),
|
||||
repository: locatorCause.repository,
|
||||
cwd: "/workspace",
|
||||
};
|
||||
@@ -204,11 +208,11 @@ it.effect(
|
||||
|
||||
it.effect("keeps a plain Bitbucket locator lookalike out of the repository message", () => {
|
||||
const provider = makeProvider({
|
||||
kind: "bitbucket",
|
||||
kind: SourceControlProviderKind.make("bitbucket"),
|
||||
getRepositoryCloneUrls: () =>
|
||||
Effect.fail(
|
||||
new SourceControlProviderError({
|
||||
provider: "bitbucket",
|
||||
provider: SourceControlProviderKind.make("bitbucket"),
|
||||
operation: "getRepositoryCloneUrls",
|
||||
cwd: "/workspace",
|
||||
detail: "credential token abc123 was rejected",
|
||||
@@ -224,7 +228,10 @@ it.effect("keeps a plain Bitbucket locator lookalike out of the repository messa
|
||||
return Effect.gen(function* () {
|
||||
const service = yield* SourceControlRepositoryService.SourceControlRepositoryService;
|
||||
const error = yield* Effect.flip(
|
||||
service.lookupRepository({ provider: "bitbucket", repository: "t3code" }),
|
||||
service.lookupRepository({
|
||||
provider: SourceControlProviderKind.make("bitbucket"),
|
||||
repository: "t3code",
|
||||
}),
|
||||
);
|
||||
|
||||
assert.strictEqual(error.detail, "The source control operation could not be completed.");
|
||||
@@ -250,7 +257,7 @@ it.effect("keeps arbitrary Bitbucket request failures out of the repository mess
|
||||
const service = yield* SourceControlRepositoryService.SourceControlRepositoryService;
|
||||
const error = yield* Effect.flip(
|
||||
service.lookupRepository({
|
||||
provider: "bitbucket",
|
||||
provider: SourceControlProviderKind.make("bitbucket"),
|
||||
repository: "pingdotgg/t3code",
|
||||
cwd: "/workspace",
|
||||
}),
|
||||
@@ -276,7 +283,7 @@ it.effect("clones a looked-up repository into the requested destination", () =>
|
||||
yield* Effect.gen(function* () {
|
||||
const service = yield* SourceControlRepositoryService.SourceControlRepositoryService;
|
||||
const result = yield* service.cloneRepository({
|
||||
provider: "github",
|
||||
provider: SourceControlProviderKind.make("github"),
|
||||
repository: "octocat/t3code",
|
||||
destinationPath,
|
||||
protocol: "https",
|
||||
@@ -285,7 +292,7 @@ it.effect("clones a looked-up repository into the requested destination", () =>
|
||||
assert.deepStrictEqual(result, {
|
||||
cwd: destinationPath,
|
||||
remoteUrl: CLONE_URLS.url,
|
||||
repository: { provider: "github", ...CLONE_URLS },
|
||||
repository: { provider: SourceControlProviderKind.make("github"), ...CLONE_URLS },
|
||||
});
|
||||
assert.deepStrictEqual(cloneCalls, [
|
||||
{
|
||||
@@ -546,7 +553,7 @@ it.effect("publishes by creating the repository, adding a remote, and pushing up
|
||||
const service = yield* SourceControlRepositoryService.SourceControlRepositoryService;
|
||||
const result = yield* service.publishRepository({
|
||||
cwd: "/workspace",
|
||||
provider: "github",
|
||||
provider: SourceControlProviderKind.make("github"),
|
||||
repository: "octocat/t3code",
|
||||
visibility: "private",
|
||||
remoteName: "origin",
|
||||
@@ -554,7 +561,7 @@ it.effect("publishes by creating the repository, adding a remote, and pushing up
|
||||
});
|
||||
|
||||
assert.deepStrictEqual(result, {
|
||||
repository: { provider: "github", ...CLONE_URLS },
|
||||
repository: { provider: SourceControlProviderKind.make("github"), ...CLONE_URLS },
|
||||
remoteName: "origin",
|
||||
remoteUrl: CLONE_URLS.sshUrl,
|
||||
branch: "feature/remote-v1",
|
||||
@@ -601,7 +608,7 @@ it.effect("publishes to the remote name returned by ensureRemote", () => {
|
||||
const service = yield* SourceControlRepositoryService.SourceControlRepositoryService;
|
||||
const result = yield* service.publishRepository({
|
||||
cwd: "/workspace",
|
||||
provider: "github",
|
||||
provider: SourceControlProviderKind.make("github"),
|
||||
repository: "octocat/t3code",
|
||||
visibility: "private",
|
||||
remoteName: "origin",
|
||||
@@ -637,7 +644,7 @@ it.effect("publish succeeds with status remote_added when the local repo has no
|
||||
const service = yield* SourceControlRepositoryService.SourceControlRepositoryService;
|
||||
const result = yield* service.publishRepository({
|
||||
cwd: "/workspace",
|
||||
provider: "github",
|
||||
provider: SourceControlProviderKind.make("github"),
|
||||
repository: "octocat/t3code",
|
||||
visibility: "private",
|
||||
remoteName: "origin",
|
||||
@@ -645,7 +652,7 @@ it.effect("publish succeeds with status remote_added when the local repo has no
|
||||
});
|
||||
|
||||
assert.deepStrictEqual(result, {
|
||||
repository: { provider: "github", ...CLONE_URLS },
|
||||
repository: { provider: SourceControlProviderKind.make("github"), ...CLONE_URLS },
|
||||
remoteName: "origin",
|
||||
remoteUrl: CLONE_URLS.sshUrl,
|
||||
branch: "main",
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
type SourceControlCloneRepositoryInput,
|
||||
type SourceControlCloneRepositoryResult,
|
||||
type SourceControlCloneProtocol,
|
||||
type SourceControlProviderKind,
|
||||
SourceControlProviderKind,
|
||||
type SourceControlPublishRepositoryInput,
|
||||
type SourceControlPublishRepositoryResult,
|
||||
type SourceControlRepositoryCloneUrls,
|
||||
@@ -209,7 +209,7 @@ export const make = Effect.gen(function* () {
|
||||
if (trimmed.length === 0) {
|
||||
return yield* new SourceControlRepositoryError({
|
||||
operation: "cloneRepository",
|
||||
provider: "unknown",
|
||||
provider: SourceControlProviderKind.make("unknown"),
|
||||
detail: "Choose a destination path before cloning.",
|
||||
});
|
||||
}
|
||||
@@ -229,7 +229,7 @@ export const make = Effect.gen(function* () {
|
||||
(cause) =>
|
||||
new SourceControlRepositoryError({
|
||||
operation: "cloneRepository",
|
||||
provider: "unknown",
|
||||
provider: SourceControlProviderKind.make("unknown"),
|
||||
detail: "Destination path already exists and is not a directory.",
|
||||
cause,
|
||||
}),
|
||||
@@ -238,7 +238,7 @@ export const make = Effect.gen(function* () {
|
||||
if (entries.length > 0) {
|
||||
return yield* new SourceControlRepositoryError({
|
||||
operation: "cloneRepository",
|
||||
provider: "unknown",
|
||||
provider: SourceControlProviderKind.make("unknown"),
|
||||
detail: "Destination path already exists and is not empty.",
|
||||
});
|
||||
}
|
||||
@@ -260,7 +260,8 @@ export const make = Effect.gen(function* () {
|
||||
const preparedDestination = yield* prepareDestination(input.destinationPath);
|
||||
let repository: SourceControlRepositoryInfo | null = null;
|
||||
let remoteUrl = input.remoteUrl?.trim() ?? null;
|
||||
let provider: SourceControlProviderKind = input.provider ?? "unknown";
|
||||
let provider: SourceControlProviderKind =
|
||||
input.provider ?? SourceControlProviderKind.make("unknown");
|
||||
|
||||
if (input.provider && input.repository) {
|
||||
repository = yield* lookupRepository({
|
||||
@@ -335,7 +336,7 @@ export const make = Effect.gen(function* () {
|
||||
(cause) =>
|
||||
new SourceControlRepositoryError({
|
||||
operation: "cloneRepository",
|
||||
provider: input.provider ?? "unknown",
|
||||
provider: input.provider ?? SourceControlProviderKind.make("unknown"),
|
||||
detail:
|
||||
stderrTail.length > 0
|
||||
? stderrTail.join(" ")
|
||||
@@ -370,7 +371,7 @@ export const make = Effect.gen(function* () {
|
||||
(cause) =>
|
||||
new SourceControlRepositoryError({
|
||||
operation: "discardClone",
|
||||
provider: "unknown",
|
||||
provider: SourceControlProviderKind.make("unknown"),
|
||||
detail: "The clone destination could not be inspected.",
|
||||
cause,
|
||||
}),
|
||||
@@ -379,7 +380,7 @@ export const make = Effect.gen(function* () {
|
||||
if (entries.length > 0 && !entries.includes(".git")) {
|
||||
return yield* new SourceControlRepositoryError({
|
||||
operation: "discardClone",
|
||||
provider: "unknown",
|
||||
provider: SourceControlProviderKind.make("unknown"),
|
||||
detail: "Destination path contains files that are not from the clone.",
|
||||
});
|
||||
}
|
||||
@@ -393,7 +394,7 @@ export const make = Effect.gen(function* () {
|
||||
(cause) =>
|
||||
new SourceControlRepositoryError({
|
||||
operation: "discardClone",
|
||||
provider: "unknown",
|
||||
provider: SourceControlProviderKind.make("unknown"),
|
||||
detail: "The partial clone could not be removed.",
|
||||
cause,
|
||||
}),
|
||||
@@ -462,13 +463,23 @@ export const make = Effect.gen(function* () {
|
||||
lookupRepository: (input) =>
|
||||
lookupRepository(input).pipe(mapRepositoryError("lookupRepository", input.provider)),
|
||||
prepareClone: (input) =>
|
||||
prepareClone(input).pipe(mapRepositoryError("cloneRepository", input.provider ?? "unknown")),
|
||||
prepareClone(input).pipe(
|
||||
mapRepositoryError(
|
||||
"cloneRepository",
|
||||
input.provider ?? SourceControlProviderKind.make("unknown"),
|
||||
),
|
||||
),
|
||||
cloneRepository: (input, options) =>
|
||||
cloneRepository(input, options).pipe(
|
||||
mapRepositoryError("cloneRepository", input.provider ?? "unknown"),
|
||||
mapRepositoryError(
|
||||
"cloneRepository",
|
||||
input.provider ?? SourceControlProviderKind.make("unknown"),
|
||||
),
|
||||
),
|
||||
discardClone: (destinationPath) =>
|
||||
discardClone(destinationPath).pipe(mapRepositoryError("discardClone", "unknown")),
|
||||
discardClone(destinationPath).pipe(
|
||||
mapRepositoryError("discardClone", SourceControlProviderKind.make("unknown")),
|
||||
),
|
||||
publishRepository: (input) =>
|
||||
publishRepository(input).pipe(mapRepositoryError("publishRepository", input.provider)),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user