Repository navigation
Description
Problem
Part of #7499. The merge-readiness verdict of devops pr ready, devops pr check-readiness and devops pr monitor reads the check runs and the commit statuses of the head commit through REST (read_commit_checks, src/devops_cli/github/check_verdict.py:440-468), and removes the older runs itself (latest_run_of_each_check, #5383). When the head reports no check, the verdict reads each workflow file at the head and copies the on.pull_request branch and path filters of GitHub (src/devops_cli/github/workflow_triggers.py, GitHubClient.pull_request_workflow_at) to guess whether a check can start (#5144, #5408). devops pr checks falls back to the same REST reads when gh pr checks fails.
Change
- The verdict reads the checks with
gh pr checks <n> --repo <repo> --json name,state,bucket,workflow,link. gh keeps the newest run of each check and each commit status, and gives the bucket. - When gh answers
no checks reported, the verdict reads the rules of the base branch (GET /repos/{repo}/rules/branches/{base}). Rules that require a check keep the pending check. Rules that require no check mean that there is nothing to wait for: the no-CI advisory, as now. devops pr checksreadsgh pr checks --jsononly. A failed read fails closed.- The verdict keeps all checks, not
--required. On PR fix(repos): Keep live rules and stricter thresholds #7481, 3 of 29 checks were required. With--required,pr readywould pass a failed Fail-to-Pass Check or CodeQL, which lowers a quality threshold (AGENTS.md rule 5). - Delete
workflow_triggers.pyand its tests,pull_request_workflow_at,read_commit_checksand the REST commit-status read, the REST fallback offetch_pr_check_verdicts, and thewcmatchdependency.
Done when
workflow_triggers.py,pull_request_workflow_at,read_commit_checksandwcmatchare deleted.- A test proves that the verdict sends
gh pr checks <n> --json ...and maps each bucket, a failed gh read andno checks reportedto the verdict. - A test proves the no-CI answer for a base branch whose rules require no check, and the wait for rules that require one.
- The tests of the policy rules stay and pass.
Existing tool considered
GitHub CLI (https://github.com/cli/cli), MIT, v2.106.0 in the devcontainer. pkg/cmd/pr/checks/aggregate.go (eliminateDuplicates) keeps the newest run of each check.
Source
Source: #7499
Activity
dan-petty commentedon Nov 28, 2026
Both refactor how checks are read for readiness and monitor, but #769 unified the read into one seam while this candidate changes the underlying API from REST to gh pr checks and deletes workflow_triggers.py.chore(main): release 0.232.2 (#7524)
devops-cli-service commentedon Nov 28, 2026
Released in v0.232.2: https://github.com/dan-petty/devops-cli/releases/tag/v0.232.2
devops-cli-service commentedon Nov 28, 2026
Live since 2026-11-28 05:01 UTC