You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(github): gate pr merge readiness on required approvals, mergeable state, and reviewer feedback #183
Pull requests are currently reported as '100% READY FOR MERGING' prematurely even when they cannot be merged.
Root Causes
Missing mergeable_state Verification: is_ready_for_merge and monitor_pr() only inspect CI checks, draft status, and thread count. They ignore GitHub's mergeable_state (REST) and mergeStateStatus (GraphQL). A PR with mergeable_state: 'blocked' (awaiting required approvals/branch protection) or 'dirty' (conflicts) is falsely declared ready.
Copilot Review Header Disregard: GitHub Copilot's Code Review bot often submits reviews with state: 'COMMENTED' while the review body begins with '### Changes recommended'. The current logic only inspects state == 'CHANGES_REQUESTED', misclassifying active recommendations as completed without changes requested.
Missing Review Approval Check: When --require-reviews is enabled (default True), PR readiness is evaluated without validating that the PR has been approved.
Remediation Plan
Add mergeable, mergeable_state, and reviewer state checks to PRMonitorStatus.
In _detect_copilot_status, classify 'changes recommended' in review body as changes_requested.
Enforce that monitor_pr fails closed (exit code 2) when mergeable_state == 'blocked', conflicting, or changes requested.
Update tests to ensure 100% test-first verification of these gates.
Activity
fix(k8s): resolve helm ssa conflicts, loki validation, podsecurity, a…
fix(github): remediate copilot review findings on pr merge readiness (#…
fix(github): enforce review approval gate, exclude negative copilot h…
fix(github): restrict copilot heading match, validate approval head s…
fix(github): gate pr merge readiness on required approvals, mergeable…
fix(review): remediate DevSecOps findings and enhance review self-imp…
dan-petty commentedon Sep 14, 2026
Resolved and merged into release/v0.2.17.
feat(release): v0.2.17 (#162)