The GitHub Actions job "prek" on airflow-steward.git/fix-stats-untriaged-scope 
has succeeded.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
e983458c6d630aa1ea7e55a48c916b0dcf752970 / Jarek Potiuk <[email protected]>
fix(pr-management-stats): refine `is_untriaged` predicate + surface 
draft/non-draft split

When running the stats dashboard against `apache/airflow` (~475 open PRs) the
"Untriaged non-drafts" hero card surfaced 266 PRs / 73 >4w, which read as a
much larger gap than reality. Breaking the figure down by author association
and label showed:

- 26 (35%) were committer-authored — F1-skipped by `pr-management-triage`, not
  actionable, but counted toward the hero card.
- 44 (60%) were already labelled `ready for maintainer review` — they had
  cleared the triage bar by an alternate path (direct reviewer promotion,
  pre-skill-era triage, etc.) but lacked the literal `Pull Request quality
  criteria` marker the classifier searches for, so they double-counted as
  "untriaged" while also appearing in the "Ready for review" hero card.

The true actionable backlog was ~38 contributor PRs, not 73. The dashboard's
recommendation rules and health rating fired on the inflated count and produced
advice that didn't match the real state.

This change refines the predicate the three downstream uses depend on:

- `classify.md`: introduces the explicit `is_untriaged` predicate combining the
  existing triage-marker scan with the two missing exclusions (collaborator-
  authored and ready-labelled).
- `aggregate.md`: adds `untriaged_nondraft` / `untriaged_old` / `untriaged_med`
  per-area counters that consume the refined predicate, plus `total_drafts` /
  `total_non_drafts` whole-repo counters for the dashboard's new draft/non-draft
  split. Updates the health-rating thresholds to read from the refined counters.
- `render.md`: enhances the "Open PRs" hero card with a two-line sub-label —
  `<non-draft> non-draft · <draft> draft` on line 1, contributor/collaborator
  split on line 2 — so the maintainer can see at a glance how much of the queue
  is in-review vs. still being worked on. Updates the "Untriaged non-drafts"
  hero card spec to reference the refined predicate and explains why both
  exclusions matter.

The pressure-score function in `classify.md#pressure-weight` already gave
collaborator-authored PRs weight 0 and ready-labelled PRs a fixed weight of 1,
so the area-pressure ranking was already correct — only the global "untriaged"
counters needed the predicate refinement.

No GraphQL or fetch shape changes; this is a pure classification + documentation
refinement.

Report URL: https://github.com/apache/airflow-steward/actions/runs/26041307117

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to