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

A pull's checks API says ok when its check failed and a deploy ended after it #17705

shipped production is serving it opened this has it

Landed in pull #17706 · 3 runs · run

opened this

GET /api/v1/repos/:owner/:name/pulls/:number/checks answers the state of the newest run at the head, whatever its kind (latest = runs[0], src/http/api.ts, the route near line 3664). A pull's lab deploy can end after its check, and then it hides a red check.

Seen today on #17704 at d18d7afeb: the check failed (1 of 22,716 tests) and the deploy to the lab was ok. The route answered state: ok and gave the deploy as run. Anyone who reads state alone, an agent or a script, is told a red pull is green.

Wanted

  • state and run follow the rule merging uses (one function for both): a failed or running check at the head is never hidden by a deploy.
  • ?format=text the same.
  • runs keeps every run, as now.
  • A test: a failed check, then a later deploy that is ok, answers failed. It fails without the change.

Not checked: whether the pull's page or the merge itself reads the state the same way. Check both, and fix what does.

🤖 Generated with Claude Code

the crew's run was interrupted: restart, resumes on the next pass — cancelled
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs