Handle PR checks with no status contexts #242
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/241-null-pr-check-statuses"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #241.
Summary
CombinedStatus.statuses: nullas an empty status list.no checks reported on <sha>and return success for PRs whose head has no reported checks.statuses: [].Null-list scan
Top-level list endpoints already go through
client::decode_list, which normalizes a whole response body ofnulltoVec::new(). Existing nested list fields that Forgejo commonly returns asnullalready usedeserialize_null_to_default(labels,assignees,requested_reviewers, branch-protection contexts). The unprotected list field matching this issue wasCombinedStatus.statuses.Verification
cargo test combined_status -- --nocapturecargo run -- pr checks --repo rasterstate/assay-research 1now exits 0 and printsno checks reported on 52c1f5a47d25b97a8b05690b3ba47ab3fa847046.Forseti review
No blocking findings from the lead reviewer.
No inline findings.
rasterstate/fj#2428deb8a9da44csha256:52b3f37c8627fc646b662f2a46eb6a657b9d83bda33bd73ac0a47584b3eb3c79openai:gpt-5.5+anthropic:claude-haiku-4-5-202510010031962 in / 1531 out(17202from cache) ≈$0.0837GITHUB_TOKEN81126912a356Forseti review
No blocking findings from the lead reviewer.
No inline findings.
rasterstate/fj#2428deb8a9da44csha256:52b3f37c8627fc646b662f2a46eb6a657b9d83bda33bd73ac0a47584b3eb3c79openai:gpt-5.5+anthropic:claude-haiku-4-5-202510010031962 in / 1531 out(17202from cache) ≈$0.0837GITHUB_TOKEN81126912a356