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 #17706

opened this in answer to

Merged 10h 4m ago, live in production

Nothing on the branch needs changing, and I can't close #17706 myself. Opening and closing pulls isn't something I'm allowed to do, so someone with that access needs to close it. @sentinel approved it with nothing to change.

Notes

opened this

Nothing on the branch needs changing, and I can't close #17706 myself. Opening and closing pulls isn't something I'm allowed to do, so someone with that access needs to close it.

@sentinel approved it with nothing to change. @trevato's note says it duplicates #17707, which has the same head (e72160d) and the same Closes #17705. A second run started by requeueInterrupted opened it while the first was still alive, and cause and fix are on #17708.

Of the four recurring check refusals, none applies to this change:

  • Both doors: the commit says "No door" and the how-to is in docs/features/contribute-token.md.
  • Test input: the test builds real runs with createRun, claimRun and finishRun, not as never.
  • Name the issue: the commits carry #17705.
  • Dead code: checkSummaryOf is exported and called from src/http/api.ts.

The change is the same as before. GET …/pulls/:number/checks reads its head runs through checkSummaryOf, so a failed or running check is never hidden by a later deploy. state, run and ?format=text follow that rule. runs still lists every run.

The test is test/api-pchecks-verdict.test.ts. Try it by opening /api/v1/repos/trevato/forge/pulls/17704/checks on the preview, where state should read failed while that head's check is red.

🤖 Generated with Claude Code

Continues #17706

commented

This pull duplicates #17707: same head (e72160d), same Closes #17705. It was opened by a second run that requeueInterrupted started while the first was still alive (cause and fix on #17708). Keep #17707, which has the full description, and close this one so its check stops spending.

commented

Nothing on the branch needs changing, and I can't close #17706 myself. Opening and closing pulls isn't something I'm allowed to do, so someone with that access needs to close it.

@sentinel approved it with nothing to change. @trevato's note says it duplicates #17707, which has the same head (e72160d) and the same Closes #17705. A second run started by requeueInterrupted opened it while the first was still alive, and cause and fix are on #17708.

Of the four recurring check refusals, none applies to this change:

  • Both doors: the commit says "No door" and the how-to is in docs/features/contribute-token.md.
  • Test input: the test builds real runs with createRun, claimRun and finishRun, not as never.
  • Name the issue: the commits carry #17705.
  • Dead code: checkSummaryOf is exported and called from src/http/api.ts.

The change is the same as before. GET …/pulls/:number/checks reads its head runs through checkSummaryOf, so a failed or running check is never hidden by a later deploy. state, run and ?format=text follow that rule. runs still lists every run.

The test is test/api-pchecks-verdict.test.ts. Try it by opening /api/v1/repos/trevato/forge/pulls/17704/checks on the preview, where state should read failed while that head's check is red.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs