Repository navigation
Commit a71d082
fix: wire stale-PR cadence env through scheduled planner + dashboard
Addresses ClawSweeper's review of #370. The new
CLAWSWEEPER_STALE_PULL_REQUEST_REVIEW_DAYS was read in reviewCadenceMs, but the
scheduled planner in .github/workflows/sweep.yml passes an explicit env
allowlist to `pnpm run plan`, so setting the documented repository variable
would not reach production scheduled runs -- stale PRs would keep the daily
cadence after opt-in. Per AGENTS.md, scheduler tuning must update both
src/clawsweeper.ts and .github/workflows/sweep.yml.
- sweep.yml: pass vars.CLAWSWEEPER_STALE_PULL_REQUEST_REVIEW_DAYS into the
planner `select` step (the only cadence-selection path -- review shards run
exact --item-numbers from the plan matrix) and into the dashboard
`audit --update-dashboard` step.
- clawsweeper.ts: cadenceBucketForReview reuses stalePullRequestReviewCadenceMs
so the dashboard "current within cadence" math matches what the planner
schedules.
- docs/scheduler.md: document the repository-variable wiring.
Unset/non-numeric/<= daily keeps the daily default everywhere, so behavior is
unchanged unless an operator opts in.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>1 parent 5188f97 commit a71d082
3 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
| 1095 | + | |
1095 | 1096 | | |
1096 | 1097 | | |
1097 | 1098 | | |
| |||
2035 | 2036 | | |
2036 | 2037 | | |
2037 | 2038 | | |
| 2039 | + | |
2038 | 2040 | | |
2039 | 2041 | | |
2040 | 2042 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
331 | 337 | | |
332 | 338 | | |
333 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19025 | 19025 | | |
19026 | 19026 | | |
19027 | 19027 | | |
19028 | | - | |
| 19028 | + | |
| 19029 | + | |
| 19030 | + | |
| 19031 | + | |
19029 | 19032 | | |
19030 | 19033 | | |
19031 | 19034 | | |
| |||
0 commit comments