also looking at this
fix: give GitLab/Bitbucket pipelines the review job, and stop cleanup lying
#1432
5 files
+152
-8
| @@ -2360,7 +2360,12 @@ export async function generateCoreWorkflows(preset: WorkflowPreset, _repoInfo: R | ||
| 2360 | 2360 | // workflows into a GitLab repository would produce files that never run, |
| 2361 | 2361 | // which reads as a successful setup until the first schedule does nothing. |
| 2362 | 2362 | const provider = _repoInfo.provider ?? 'github' |
| 2363 | const template = ciTemplateFor(provider) | |
| 2363 | // The review job is what makes the pipeline more than a scheduler. The | |
| 2364 | // GitHub workflow has always carried one; these two were generated without | |
| 2365 | // it because the option existed and the call site never passed it. The | |
| 2366 | // command honours `ai.review` at run time and works without a key, so the | |
| 2367 | // job is as safe to include here as it is there. | |
| 2368 | const template = ciTemplateFor(provider, { review: true }) | |
| 2364 | 2369 | |
| 2365 | 2370 | if (template) { |
| 2366 | 2371 | fs.writeFileSync(template.path, template.content) |