ReviewOS

also looking at this

stacks/buddy

feat(setup): make the preset you pick the preset you get

#1412
Merged glennmichael123 wants to merge feat/preset-wiring into main
10 files +507 -61
test/cli-setup-extended.test.tsmodified+4-4
Changes to test/cli-setup-extended.test.ts
@@ -9,16 +9,16 @@ describe('CLI Setup - Extended Tests', () => {
99 const workflowWithCustomToken = generateUnifiedWorkflow(true)
1010 expect(workflowWithCustomToken).toContain('name: Buddy')
1111 expect(workflowWithCustomToken).toContain('pull_request:') // Rebase checkbox via PR edit event
12 expect(workflowWithCustomToken).toContain('cron: \'0 */2 * * *\'') // Update job
13 expect(workflowWithCustomToken).toContain('cron: \'15 */2 * * *\'') // Dashboard job
12 // Standard puts updates and the dashboard on one expression, so one
13 // cron entry starts both jobs.
14 expect(workflowWithCustomToken).toContain('cron: \'0 9 * * 1,3,5\'')
1415 expect(workflowWithCustomToken).toContain('BUDDY_TOKEN')
1516
1617 // Test with default token
1718 const workflowWithDefaultToken = generateUnifiedWorkflow(false)
1819 expect(workflowWithDefaultToken).toContain('name: Buddy')
1920 expect(workflowWithDefaultToken).toContain('pull_request:') // Rebase checkbox via PR edit event
20 expect(workflowWithDefaultToken).toContain('cron: \'0 */2 * * *\'') // Update job
21 expect(workflowWithDefaultToken).toContain('cron: \'15 */2 * * *\'') // Dashboard job
21 expect(workflowWithDefaultToken).toContain('cron: \'0 9 * * 1,3,5\'')
2222 // eslint-disable-next-line no-template-curly-in-string
2323 expect(workflowWithDefaultToken).toContain('$')
2424 // Should not use BUDDY_TOKEN in the actual token environment variable