ready-prs ยท diff

git:20261116.4ce819f to git:20261116.093f7d2

33 added, 24 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
name: ready-prs
- description: List open PRs from the team and the community that look ready to merge (mergeable, CI green, no requested changes, no unresolved threads, review bot clean). Read-only. Use when the user asks which PRs are ready, mergeable, good to merge, worth reviewing next, or for a PR triage of a repo.
+ description: List open PRs from the team and the community that are ready for a human to merge - labeled "Ready for Human Review" by the automated first pass, mergeable, CI green, no requested changes or open threads. Read-only. Use when the user asks which PRs are ready, mergeable, good to merge, worth reviewing next, or for their merge queue.
---
# Ready PRs
- Surface the open PRs that only need a human look and a merge. Never merge,
- approve, comment, label or otherwise change a PR.
+ The second pass of a two-pass PR flow. A scheduled agent does the first pass: it
+ reviews every PR, posts an automated review, closes spam and adds the
+ `Ready for Human Review` label once a PR is good. This skill lists what is
+ waiting on the human: PRs a maintainer can read and merge now, plus near-misses
+ that each need one nudge. Never merge, approve, comment, label or otherwise
+ change a PR.
## Run
```bash
- node ~/.agents/skills/ready-prs/scripts/ready-prs.mjs [owner/repo ...]
+ node ~/.agents/skills/ready-prs/scripts/ready-prs.mjs [owner/repo ...] [--label "<name>" | --label none] [--json]
```
- No repo given: it uses the current directory's repo. Outside a repo, use
`e2e-inc/e2e`.
- - Pass several repos to scan them in one go. Add `--json` for raw data.
- - It takes about 30s on a repo with ~50 open PRs. Run it once; don't re-query
- PRs by hand.
+ - The ready label is detected per repo (`Ready for Human Review` or
+ `Ready for maintainer review`). `--label` overrides it; `--label none` turns
+ the gate off for repos without a first pass.
+ - About 20s for ~50 open PRs. Run it once; don't re-query PRs by hand.
## What counts as ready
A non-draft PR is ready when all of these hold:
- - GitHub merge state is `CLEAN`, `UNSTABLE` or `HAS_HOOKS`, or `BLOCKED` only
- because it waits for a required approval.
- - CI is not failing or running.
- - No review requests changes and no review thread is unresolved.
- - The review bot is clean: a Codex ๐Ÿ‘ on the PR, or a latest cubic summary of
- "No issues found", "0 issues found" or "All reported issues were addressed".
- This is only required in repos where a bot reviews PRs at all.
+ - It has the ready label, and no commit landed after the label was added.
+ - Merge state is `CLEAN`, `UNSTABLE` or `HAS_HOOKS`, or `BLOCKED` only because
+ a required approval is missing.
+ - CI ran and is neither failing nor running. No CI at all is not ready.
+ - No reviewer's latest review requests changes. This reads each reviewer's own
+ latest review, because GitHub's review decision is empty on repos with no
+ required approvals.
+ - No review thread is unresolved.
+ - The review bot did not report open issues. Without a ready label, a clean bot
+ verdict (Codex ๐Ÿ‘, or a cubic "No issues found") is also required.
- Groups come from GitHub's author association: owner, member or collaborator is
+ Groups come from the author's association: owner, member or collaborator is
team; everyone else is community; bot accounts (release PRs) are listed apart.
- PRs that miss exactly one check are listed under "One step away" with the
- reason.
+ Ready PRs are sorted smallest first, then oldest first. PRs that miss exactly
+ one check are listed under "One step away" with the reason.
## Report
Show the script's output as is, then add at most three short notes:
- - Suggest an order: small and long-waiting PRs first, team before community
- only when the user asked about the team.
- - Flag `cubic clean (older commit)`: the bot passed an earlier commit and the
- newest changes have no bot verdict yet.
- - Point out "One step away" items the user can unblock themselves, such as
- `no bot review yet` on a fresh PR or merge conflicts on a team PR.
+ - What to merge first: small, long-waiting PRs, and anything `approved by` a
+ teammate.
+ - Real risks from the notes column: `same files as` (merge one, then recheck the
+ other), `bot passed an older commit`, `idle Nd`.
+ - Near-misses the user can unblock: `new commits after "<label>"` waits for the
+ next first pass; merge conflicts on a team PR can be fixed directly.
- To go deeper on one PR, use `pr-review-canvas`.
+ To read one PR, open its agent review link, or use `pr-review-canvas` for a
+ full walkthrough.