fix: fix: dev-poll / reviewer gate on required contexts, not combined commit status (#1136) #1145
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#1145
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-1136"
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 #1136
Changes
AI Review
Summary
Bug fix for #1136:
ci_commit_statusnow gates on branch-protection required contexts only, ignoring optional workflows that are stuck or failed.Findings
No issues found. All claims verified:
ci_required_contexts— cache check uses${_CI_REQUIRED_CONTEXTS+set}(set-even-if-empty idiom), which correctly caches empty results when status checks are disabled or branch protection is absent. API call is made only once per shell lifetime._ci_reduce_required_contextsjq logic —sort_by(.id) | lastcorrectly selects the most-recent run per context. Missing contexts resolve tonull | .status // "pending"→"pending"(confirmed with jq). Empty context list returns"pending"as a safe default.requiredis empty,ci_commit_statusskips the new block entirely and falls through to the original Woodpecker/forge combined-status path. Behavior is unchanged for repos without required-context configuration.ci_required_contextsdirectly (not viarun) so the shell variable persists across calls within the test.set -euo pipefailpresent in the file, all variables quoted,|| bp_json=""and|| { echo "pending"; return; }guard every external call.Verdict
APPROVE — Correct required-context reduction; cache, fallback, and jq null-handling all verified
Reviewed at
260364e| AGENTS.mdAI Review: APPROVE — Correct required-context reduction; cache, fallback, and jq null-handling all verified