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

A shipped tell finds its change by asking for the event, not scanning 200 #219

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

`ListEventsOptions` grows an optional `kind` filter applied as one more SQL clause in `listEvents` (unused by `listEventsVisibleTo`, so a stranger sees no more than before). `shippedBy` in `src/web/studio/tell.ts` now asks for `issue.closed` events of the repository directly instead of scanning the last 200 events of any kind, so it finds the closing merge even when it's buried under unrelated act…

shipped production is serving it deploy caaa084

opened this

ListEventsOptions grows an optional kind filter applied as one more SQL clause in listEvents (unused by listEventsVisibleTo, so a stranger sees no more than before). shippedBy in src/web/studio/tell.ts now asks for issue.closed events of the repository directly instead of scanning the last 200 events of any kind, so it finds the closing merge even when it's buried under unrelated activity.

Added a test in test/studio.test.ts that closes an issue by merge, appends 250 push events afterward, and confirms the tell page still reads shipped rather than falling back to the plain Closed badge — it fails against the old scan-200 code and passes with the fix.

bun x tsc --noEmit is clean and the full check suite passes except for 6 pre-existing failures (git auth/sandbox unavailable in this environment) that fail identically with my changes reverted.

Closes #107

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs