Problem
foc-review-stats has a --since flag but no --until / end date. The query window always runs from --since to today, so there's no way to look at a specific time period in the past (e.g., a particular month or quarter).
Proposed change
Add an --until YYYY-MM-DD flag that filters results to activity within the --since to --until window. When omitted, behavior is unchanged (runs to today).
Scope considerations
Ideally the window should capture all activity on PRs that were open during the period, not just PRs created in the period. For example, for a March window:
- A PR created in February but reviewed in March — the March review should count
- A PR created in March but merged in April — the March creation and any March reviews should count
- A PR created and merged entirely within March — all activity counts
In other words, the filter should apply to the event timestamps (creation date, review date) rather than just the PR creation date.
Problem
foc-review-statshas a--sinceflag but no--until/ end date. The query window always runs from--sinceto today, so there's no way to look at a specific time period in the past (e.g., a particular month or quarter).Proposed change
Add an
--until YYYY-MM-DDflag that filters results to activity within the--sinceto--untilwindow. When omitted, behavior is unchanged (runs to today).Scope considerations
Ideally the window should capture all activity on PRs that were open during the period, not just PRs created in the period. For example, for a March window:
In other words, the filter should apply to the event timestamps (creation date, review date) rather than just the PR creation date.