(tree: Tree)
| 95 | } |
| 96 | |
| 97 | async 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 | |
| 106 | function generateGitLabYaml(): string { |
| 107 | const lines = [ |
no test coverage detected