ReviewOS

also looking at this

stacks/buddy

fix: give GitLab/Bitbucket pipelines the review job, and stop cleanup lying

#1432
Merged glennmichael123 wants to merge fix/pipelines-and-cleanup into main
5 files +152 -8
src/setup.tsmodified+6-1
Changes to src/setup.ts
@@ -2360,7 +2360,12 @@ export async function generateCoreWorkflows(preset: WorkflowPreset, _repoInfo: R
23602360 // workflows into a GitLab repository would produce files that never run,
23612361 // which reads as a successful setup until the first schedule does nothing.
23622362 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 })
23642369
23652370 if (template) {
23662371 fs.writeFileSync(template.path, template.content)