Skip to content

refactor(pr): read the readiness checks with gh pr checks - #7519

Merged
dan-petty merged 2 commits into
mainfrom
refactor/7508-readiness-checks-gh
Nov 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
refactor/7508-readiness-checks-gh

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The merge-readiness verdict of devops pr ready, check-readiness and pr monitor now reads the checks with gh pr checks --json. gh reads the check runs and the commit statuses, keeps the newest run of each check and gives the bucket. When gh answers no checks reported, the rules of the base branch decide: a required check keeps the wait, and no required check gives the no-CI advisory.

This deletes the REST check and status reads, workflow_triggers.py (a copy of the GitHub on.pull_request filters), pull_request_workflow_at, the REST fallback of devops pr checks and the wcmatch dependency. These broke in #5144, #5383 and #5408.

The verdict keeps all checks, not --required: on PR #7481, 3 of 29 checks were required, and --required would pass a failed Fail-to-Pass Check (AGENTS.md rule 5). #7509, #7510 and #7512 do the rest of #7499.

Closes #7508
Change: openspec/changes/archive/2026-11-28-7508-readiness-checks-gh/

The merge-readiness verdict of pr ready, check-readiness and pr monitor
reads the checks with `gh pr checks --json`. When the head reports no
check, the rules of the base branch decide whether it waits. Delete the
REST check and status reads, the copy of the workflow trigger filters
(workflow_triggers.py) and the wcmatch dependency.
@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/pr The devops pr commands labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 02:17
@dan-petty
dan-petty merged commit 14d401a into main Nov 28, 2026
37 checks passed
@dan-petty
dan-petty deleted the refactor/7508-readiness-checks-gh branch November 28, 2026 02:18
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.232.2](v0.232.1...v0.232.2)
(2026-11-28)


### Code Refactoring

* **pr:** read the readiness checks with gh pr checks
([#7519](#7519))
([14d401a](14d401a)),
closes [#7508](#7508)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/pr The devops pr commands type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(pr): read the readiness checks with gh pr checks

1 participant