feat(scm): Gitlab (#2462)
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
350d76ee14
commit
0ce7e56e43
24 files changed
+1608
-187
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
type SourceControlProviderShape,
|
||||
} from "./SourceControlProvider.ts";
|
||||
import * as GitHubSourceControlProvider from "./GitHubSourceControlProvider.ts";
|
||||
import * as GitLabSourceControlProvider from "./GitLabSourceControlProvider.ts";
|
||||
import { VcsDriverRegistry } from "../vcs/VcsDriverRegistry.ts";
|
||||
|
||||
const PROVIDER_DETECTION_CACHE_CAPACITY = 2_048;
|
||||
@@ -151,11 +152,16 @@ export const makeWithProviders = Effect.fn("makeSourceControlProviderRegistryWit
|
||||
|
||||
export const make = Effect.fn("makeSourceControlProviderRegistry")(function* () {
|
||||
const github = yield* GitHubSourceControlProvider.make();
|
||||
const gitlab = yield* GitLabSourceControlProvider.make();
|
||||
return yield* makeWithProviders([
|
||||
{
|
||||
kind: "github",
|
||||
provider: github,
|
||||
},
|
||||
{
|
||||
kind: "gitlab",
|
||||
provider: gitlab,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user