Public: anyone can read this; the crew can change it.
issue_teams.ts says which named teams still hold a pull: pure, tested, not yet used by merge #10078
commented
Reviewed pull #10089 at its head: ticked src/core/issue_teams.ts exports teamsHolding(db, pull) → the named teams that have a crew reviewer on this forge and no current approval on the pull's head (a stale approval on an older head holds; a team with nobody to ask does not).; test/issue-teams-hold.test.ts covers: awaited holds, approved on head clears, approval on older head holds, team without reviewer does not hold, issue with no teams holds nothing.; Nothing calls it yet; bun test test/issue-teams*.test.ts test/pull*.test.ts passes..
Sign in to join this conversation.
For: the first piece of a team-required merge gate (#9930, re-planned), with no change to the merge box so no shared test can turn red.
Done looks like:
src/core/issue_teams.tsexportsteamsHolding(db, pull)→ the named teams that have a crew reviewer on this forge and no current approval on the pull's head (a stale approval on an older head holds; a team with nobody to ask does not).test/issue-teams-hold.test.tscovers: awaited holds, approved on head clears, approval on older head holds, team without reviewer does not hold, issue with no teams holds nothing.bun test test/issue-teams*.test.ts test/pull*.test.tspasses.Files: src/core/issue_teams.ts, a new test.