Commit b749ce8
fix: check statusCheckRollup.state for pending CI
When CI is still starting up (e.g., workflow jobs queued but not yet
created), the rollup state is PENDING but no individual check nodes
with PENDING status exist yet. The script was falling through to
CI_FAIL because $any_running evaluated false.
Capture the rollup-level .state field and incorporate it into the
$any_running calculation so PENDING/EXPECTED rollup states correctly
show as 🟡 (running) instead of 🔴 (failed).
Co-Authored-By: Claude Code (/Users/nathan.heaps/src/stainless-api/stainless) <noreply@anthropic.com>1 parent a536d7f commit b749ce8
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
405 | 409 | | |
406 | 410 | | |
407 | 411 | | |
| |||
448 | 452 | | |
449 | 453 | | |
450 | 454 | | |
451 | | - | |
| 455 | + | |
452 | 456 | | |
453 | 457 | | |
454 | 458 | | |
| |||
0 commit comments