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
refactor(pr): wait for the monitor checks with gh pr checks --watch #7509
Part of #7499. devops pr monitor and devops pr wait poll the merge-readiness verdict in their own loop (src/devops_cli/github/pr_monitor.py:646-713).
Change
Wait with gh pr checks <n> --watch --fail-fast --interval <s> under the timeout of the monitor, then read the verdict once.
Keep the settle time of the Copilot review and the map of exit codes.
In gh v2.106.0, --watch and --json exclude each other, and a head with no check exits 1 at once with no checks reported (pkg/cmd/pr/checks/checks.go). The monitor must still wait for a head with no check.
Closed as not planned (vetting of PR #7527, 2026-11-28). The slice does not replace custom code with gh, it adds a second wait beside the custom loop: source +129 / −27. The poll loop of monitor_pr stays for a head with no check, an active Copilot review, the settle time and the read-failure rule (#4838), because gh has no watch for these, and a may_watch flag now switches between the two waits. gh pr checks --watch itself reads the checks each interval, so it moves the same reads into gh, where the pacing ledger does not count them. So the slice adds code and hides requests, against the aim of #7499 (delete custom code that rebuilds what gh does). The verdict part of #7499 is done by #7508 (−400 lines); the remaining slices are #7510 and #7512.
Activity
dan-petty commentedon Nov 28, 2026
Both refactor pr monitor waiting behaviour, but #2443 changes how the verdict is read and blockers are named, while the candidate changes the wait mechanism from a poll loop to gh --watch.refactor(pr): read the readiness checks with gh pr checks (#7519)
dan-petty commentedon Nov 28, 2026
Closed as not planned (vetting of PR #7527, 2026-11-28). The slice does not replace custom code with gh, it adds a second wait beside the custom loop: source +129 / −27. The poll loop of
monitor_prstays for a head with no check, an active Copilot review, the settle time and the read-failure rule (#4838), because gh has no watch for these, and amay_watchflag now switches between the two waits.gh pr checks --watchitself reads the checks each interval, so it moves the same reads into gh, where the pacing ledger does not count them. So the slice adds code and hides requests, against the aim of #7499 (delete custom code that rebuilds what gh does). The verdict part of #7499 is done by #7508 (−400 lines); the remaining slices are #7510 and #7512.