also looking at this
feat(setup): make the preset you pick the preset you get
#1412
10 files
+507
-61
| @@ -549,19 +549,22 @@ cli | ||
| 549 | 549 | } |
| 550 | 550 | } |
| 551 | 551 | |
| 552 | // Resolved before the config file, not after: the preset decides the | |
| 553 | // update strategy and auto-merge policy that file is written with. | |
| 554 | const preset = getWorkflowPreset(workflowResponse.useCase) | |
| 555 | ||
| 552 | 556 | // Step 5: Generate Configuration File |
| 553 | 557 | updateProgress(progress, 'Configuration File', true) |
| 554 | 558 | displayProgress(progress) |
| 555 | 559 | |
| 556 | 560 | console.log('\n📝 Configuration File') |
| 557 | await generateConfigFile(repoInfo, tokenSetup.hasCustomToken) | |
| 561 | await generateConfigFile(repoInfo, tokenSetup.hasCustomToken, preset) | |
| 558 | 562 | |
| 559 | 563 | // Step 6: Generate Workflows |
| 560 | 564 | updateProgress(progress, 'Workflow Generation', true) |
| 561 | 565 | displayProgress(progress) |
| 562 | 566 | |
| 563 | 567 | console.log('\n🔄 Workflow Generation') |
| 564 | const preset = getWorkflowPreset(workflowResponse.useCase) | |
| 565 | 568 | |
| 566 | 569 | if (workflowResponse.useCase === 'custom' && !options.nonInteractive) { |
| 567 | 570 | await setupCustomWorkflow(preset, logger) |