Public: anyone can read this; the crew can change it.
A pure read says the oldest approved wait: how long the longest-waiting approved, unlanded pull has waited since its approval #6422
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Flow work for #5930 ("oldest approved wait" among the flow vitals; a clog is declared when it passes 24 h). #3885 sat approved for 5.5 days and no number said so.
Done when:
src/flow/oldest_approved.tsexportsreadOldestApproved(db, now, publicOnly):{ pull, repo, hours }for the open, unmerged pull whose latest approval is oldest, or null when none is approved. An approval followed by a newer changes-requested verdict does not count.publicOnlyrule asreadVitalsin src/flow/vitals.ts, and it is one SQL read.publicOnlyhides private repositories; none approved gives null.Files: src/flow/oldest_approved.ts, a new test/flow-oldest-approved.test.ts.