Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By chinlungv1.4.0MITIn 1 marketplace
PR closeout: ready reads a PR's merge readiness from GitHub as an exit-coded, fail-closed verdict (conflicts, unresolved review threads, failed or missing required checks, hidden merge gates, files the last review-branch round never saw, unarchived openspec changes); landed proves the merge afterwards (merged_at, head, merge commit on base, branch cleanup). A PreToolUse gate runs ready before gh pr merge, gh api …/merge and the GitHub MCP merge tool. The pr-watch skill watches a pushed PR until only the user can act (watch judges each round; a guard hook keeps it from writing to GitHub).
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
pull-request, merge, closeout, github, code-review, ci, merge-gate
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
PR closeout as facts instead of hand-typed queries:
ready before the merge. It reads a PR's merge readiness from GitHub and returns a fail-closed, exit-coded verdict.landed after the merge. It proves the merge happened as reviewed and that the branch is gone.ready before any merge Claude attempts.pr-watch after the push (1.2.0). A skill that watches one PR until only the user can act, with watch judging each round and a guard hook keeping it from writing to GitHub./plugin install pr-closeout@scl-claude-plugins
After an upgrade, run claude plugin update pr-closeout. Installed copies are cached by version.
readynode ${CLAUDE_PLUGIN_ROOT}/scripts/pr-closeout.mjs ready <owner/repo> <pr> \
[--expect-head <sha>] [--repo-dir <path>] [--accept-unreviewed <path>=<reason>]...
It prints one JSON object. Every check runs and hits[] lists each condition met; the exit code is the most urgent one.
| Exit | Meaning |
|---|---|
| 0 | Ready to merge |
| 2 | Conflicts with the base |
| 3 | Unresolved review threads; an outdated thread is not resolved |
| 4 | A check failed, the rollup is FAILURE or ERROR, or a required check is missing |
| 5 | Pending: a check is running, or GitHub is still computing mergeability |
| 6 | A merge gate; see gate |
| 7 | A query failed, a value is unknown, or a usage error |
gate | Meaning |
|---|---|
not-open, draft | The PR is not open, or is a draft |
changes-requested | A reviewer requested changes |
head-mismatch | The PR head is not --expect-head |
unreviewed | With --repo-dir: files the last review-branch round did not see in this version |
blocked-unseen | GitHub reports BLOCKED and nothing visible explains it (a required review, a ruleset) |
behind | The base requires the branch to be up to date |
Fail-closed. An unknown enum value, a missing field, a failed query, 100 or more review threads or check contexts, or more than 1000 comments on one endpoint is exit 7, never ready. Comments are read page by page (1.2.0; before, 100 on one endpoint was exit 7). All queries share one 20 s deadline (PR_CLOSEOUT_DEADLINE_MS), so ready ends before the merge gate hook's 30 s timeout.
Queries. gh api runs first. If it fails, the token from gh auth token is passed to curl on stdin, so it never appears in argv or output.
With --repo-dir (the local clone of the PR's repo):
<gitdir>/review-branch-last.json, same branch only). Documents are listed under docsOnly and never block; prompt files under skills/, commands/, agents/, output-styles/ or hooks/, requirements*.txt and CMakeLists.txt are not documents. A file review-branch skipped as unchanged since an earlier round (unchangedSince) counts as reviewed. --accept-unreviewed <path>=<reason> lets one file through; the reason is required. No record, a different branch or a head that is not fetched gives coverage.status: "unknown", which does not block. The comparison is of the bytes git stores: in a clone where git rewrites them on the way in or does not track the mode (core.autocrlf, core.fileMode=false), review-branch's record of the working tree can differ from the PR's blobs for a file nobody changed, and that file is reported unreviewed; pass --accept-unreviewed for it with that as the reason.openspec/, the changes the PR touches that are still outside archive/ are listed, with reconcile-check verify's answer. This is a warning only. verify reads the change in the working tree of --repo-dir, not the PR's head, so it answers for the branch that is checked out there; it shares the run's deadline and a checker that does not answer in time is reported as unavailable.Also in the JSON, without affecting the exit: precedent (whether the previous merged PR was squashed or merged), baseBehind, comment counts and authors per endpoint, and suspectedSkip (see below).
A per-user file, not part of this plugin. The script reads $PR_CLOSEOUT_CONFIG, or ~/.claude/pr-closeout/required-checks.json when that is unset:
{
"<owner>/<repo>": {
"required": ["security-review", "tests"],
"minSeconds": { "security-review": 30 }
}
}
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub chinlung/claude-dev-workflow --plugin pr-closeoutPlugins from other owners that cover similar ground