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

Function writeGitLabConfig

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

Source from the content-addressed store, hash-verified

95}
96
97async function writeGitLabConfig(tree: Tree): Promise<void> {
98 const filePath = await resolveGitLabFilePath(tree);
99 await tree.write(filePath, generateGitLabYaml());
100
101 if (filePath === GITLAB_CONFIG_SEPARATE_PATH) {
102 await patchRootGitLabConfig(tree);
103 }
104}
105
106function generateGitLabYaml(): string {
107 const lines = [

Callers 1

resolveCiFunction · 0.85

Calls 3

resolveGitLabFilePathFunction · 0.85
generateGitLabYamlFunction · 0.85
patchRootGitLabConfigFunction · 0.85

Tested by

no test coverage detected