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
src/types.tsmodified+11-3
Changes to src/types.ts
@@ -226,10 +226,18 @@ export interface BuddyConfig {
226226 * the numbers; it never produces them.
227227 */
228228 reports?: {
229 /** Generate reports (default: false) */
229 /**
230 * Publish the scheduled report (default: false).
231 *
232 * Governs only the run the generated workflow starts: a cron trigger
233 * cannot read this file, so the workflow passes `--scheduled` and the
234 * command declines to publish unless this is `true`. A person running
235 * `buddy report --publish` by hand has already decided.
236 *
237 * The cadence itself lives in the workflow's `schedule:` block — there
238 * is no config key for it, because nothing at trigger time could read one.
239 */
230240 enabled?: boolean
231 /** Cron expression for the scheduled run */
232 schedule?: string
233241 /** Reporting window (default: `30d`) */
234242 period?: '7d' | '30d' | '90d'
235243 /** What the AI narrative should emphasise */