ReviewOS

also looking at this

stacks/buddy

fix(reports): honour reports.enabled and reports.period, drop the key nothing could read

#1429
Merged glennmichael123 wants to merge fix/reports-config into main
7 files +118 -9
docs/api/configuration.mdmodified+8-4
Changes to docs/api/configuration.md
@@ -315,12 +315,9 @@ Scheduled dependency-health and activity reports.
315315
316316```typescript
317317interface ReportSettings {
318 /** Generate reports (default: false) */
318 /** Publish the scheduled report (default: false) */
319319 enabled?: boolean
320320
321 /** Cron expression for the scheduled run */
322 schedule?: string
323
324321 /** Reporting window (default: `30d`) */
325322 period?: '7d' | '30d' | '90d'
326323
@@ -339,6 +336,13 @@ The report is computed from scan results and pull request history, so it works
339336with no AI provider. A configured provider adds a narrative around the
340337numbers; it never produces them.
341338
339`enabled` governs only the run the generated workflow starts — a cron trigger
340cannot read this file, so the workflow passes `--scheduled` and the command
341declines to publish unless it is `true`. Running `buddy report --publish` by
342hand publishes regardless. The cadence lives in the workflow's `schedule:`
343block; there is no config key for it, because nothing at trigger time could
344read one.
345
342346## Analysis
343347
344348```typescript