MCPcopy
hub / github.com/lingodotdev/lingo.dev / getPlatformKit

Function getPlatformKit

packages/cli/src/cli/cmd/ci/platforms/index.ts:5–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { GitlabPlatformKit } from "./gitlab";
4
5export const getPlatformKit = () => {
6 if (process.env.BITBUCKET_PIPELINE_UUID) {
7 return new BitbucketPlatformKit();
8 }
9
10 if (process.env.GITHUB_ACTION) {
11 return new GitHubPlatformKit();
12 }
13
14 if (process.env.GITLAB_CI) {
15 return new GitlabPlatformKit();
16 }
17
18 throw new Error("This platform is not supported");
19};

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected