MCPcopy Create free account
hub / github.com/code-pushup/cli / resolveGitLabFilePath

Function resolveGitLabFilePath

packages/create-cli/src/lib/setup/ci.ts:144–149  ·  view source on GitHub ↗
(tree: Tree)

Source from the content-addressed store, hash-verified

142}
143
144async function resolveGitLabFilePath(tree: Tree): Promise<string> {
145 if (await tree.exists(GITLAB_CONFIG_PATH)) {
146 return GITLAB_CONFIG_SEPARATE_PATH;
147 }
148 return GITLAB_CONFIG_PATH;
149}
150
151function isCiProvider(value: string | undefined): value is CiProvider {
152 const validValues: readonly string[] = CI_PROVIDERS;

Callers 1

writeGitLabConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected