Skip to content

foc-review-stats: add --until flag for end date filtering #47

@BigLep

Description

@BigLep

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    🐱 Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions