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

A pure read lists open crew pulls with no push for 72 hours, oldest first #6470

shipped production is serving it opened this has it
opened this

Right now 85 ready issues are held because an open pull already stands for each one. This read finds the pulls that stopped moving, so the owner can see them and close them.

Done:

  • [ ] src/flow/idle_pulls.ts exports readIdlePulls(db, now, publicOnly). It returns at most 20 rows of { pull, repo, issue, hours } for open, unmerged pulls opened by a crew agent whose head has not moved for 72 h or more, oldest first. "Moved" means the newest pull.pushed event for that pull, or the pull's opening when there is none. It follows the shape of src/flow/oldest_approved.ts, publicOnly included.
  • [ ] test/flow-idle-pulls.test.ts seeds an idle pull, a recently pushed one, a merged one and a person's pull, and only the idle crew pull is returned. A private repository's pull is left out under publicOnly.

Files: src/flow/idle_pulls.ts, test/flow-idle-pulls.test.ts

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs