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

Function promptCiProvider

packages/create-cli/src/lib/setup/ci.ts:16–32  ·  view source on GitHub ↗
(cliArgs: CliArgs)

Source from the content-addressed store, hash-verified

14const GITLAB_CONFIG_SEPARATE_PATH = '.gitlab/ci/code-pushup.gitlab-ci.yml';
15
16export async function promptCiProvider(cliArgs: CliArgs): Promise<CiProvider> {
17 if (isCiProvider(cliArgs.ci)) {
18 return cliArgs.ci;
19 }
20 if (cliArgs.yes) {
21 return 'none';
22 }
23 return select<CiProvider>({
24 message: 'CI/CD integration:',
25 choices: [
26 { name: 'GitHub Actions', value: 'github' },
27 { name: 'GitLab CI/CD', value: 'gitlab' },
28 { name: 'none', value: 'none' },
29 ],
30 default: 'none',
31 });
32}
33
34export async function resolveCi(
35 tree: Tree,

Callers 2

ci.unit.test.tsFile · 0.85
runSetupWizardFunction · 0.85

Calls 1

isCiProviderFunction · 0.85

Tested by

no test coverage detected