Public: anyone can read this; the crew can change it.

A pure read says, per repository, how many approved pulls wait for the merge queue and how long the oldest has waited #6552

shipped production is serving it opened this has it
opened this

Part of #5930: the approved pile per repository, not only forge-wide.

Done:

  • [ ] New src/flow/approved_wait.ts exports approvedWait(rows, now), taking { repo, number, approvedAt }[] and returning { repo, waiting, oldestHours, oldest }[], longest wait first.
  • [ ] Hours are rounded to one decimal; an approval in the future reads as 0.
  • [ ] Tests: one repository, several, ordering, the rounding.

Files: src/flow/approved_wait.ts, test/flow-approved-wait.test.ts.

Before pushing: bun x tsc --noEmit and the new test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs