Github Pr Triage
ASecurityReport the status of your open GitHub pull requests everywhere on GitHub (mitodl and upstream open source projects alike), or in chosen orgs or repos, in a single command: which are approved and ready to merge, which have review feedback you haven't addressed (unresolved review threads awaiting your reply, changes requested, failing CI, merge conflicts), which are waiting on a reviewer, which have no reviewer at all, and which are drafts. Use this skill when asked "what PRs do I have open", "...
- 5 stars
- 0 votes
- 0 copies
- 3 views
- Added September 8, 2026
Works with
Security analysis
100/100Pro scans all 8 files and shows the line behind each finding
npx -y skills add mitodl/agent-kit --skill github-pr-triage --agent claude-codeAre you the author of Github Pr Triage?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mitodl-github-pr-triage)---
name: github-pr-triage
description: >
Report the status of your open GitHub pull requests everywhere on GitHub
(mitodl and upstream open source projects alike), or in chosen orgs or
repos, in a single command: which are approved and ready to merge, which have
review feedback you haven't addressed (unresolved review threads awaiting
your reply, changes requested, failing CI, merge conflicts), which are
waiting on a reviewer, which have no reviewer at all, and which are drafts.
Use this skill when asked "what PRs do I have open", "which of my PRs are
approved", "what feedback haven't I addressed", for a PR status report, to
triage an open-PR backlog, to check on PRs sent to upstream projects, to
find PRs ready to merge, or to act on that backlog (request first-pass bot
reviews, merge approved PRs).
license: BSD-3-Clause
metadata:
category: process
---
# GitHub PR Triage
One command answers "what PRs do I have open, and what does each one need":
```bash
uv run --script skills/process/github-pr-triage/scripts/pr_status.py # every repo on GitHub
uv run --script skills/process/github-pr-triage/scripts/pr_status.py mitodl # one org
uv run --script skills/process/github-pr-triage/scripts/pr_status.py openedx apache/apisix # several orgs/repos
uv run --script skills/process/github-pr-triage/scripts/pr_status.py --author someone-else
uv run --script skills/process/github-pr-triage/scripts/pr_status.py --json # per-PR records
```
With no scope it covers everything the author has open, including PRs to
upstream projects, which is the right default for "what PRs do I have open".
Narrow to an org or repo only when the user does. Each scope is searched
separately and the results merged, so orgs and repos can be mixed.
It prints a markdown report grouped by whose move it is, one row per PR with
a status line, and a one-line count at the end. Show that report to the user
as-is; don't re-derive it or re-bucket it. About 15 seconds for 100 PRs.
Default to report-only. Act (request reviews, merge, fix feedback) only when
the user asked for it, and follow [Acting on the report](#acting-on-the-report).
## Groups
Each PR lands in exactly one group, checked in this order:
| Group | Rule |
|-------|------|
| Drafts | Not marked ready for review |
| Needs you | Any unresolved review thread whose last comment isn't from the PR author; a human's review comment not yet answered by a push, comment, or thread reply; a change-requester with no push after their review and no re-request; more than 100 review threads (only the first 100 are checked); CI failing; merge conflict |
| Ready to merge | Approved, CI green (or no CI), mergeable, nothing above, and the viewer has write access to the repo |
| Waiting on others | Approved but CI still running, mergeability not computed yet, or the repo is upstream and a maintainer has to merge; a review request pending; or a human has reviewed and the author has answered |
| No human reviewer yet | No human review and no pending request. Bot-only reviews show as `bot review only (...)` |
The status line carries the detail behind the group, e.g. `approved by Ardiea;
7 open threads awaiting the author (github-advanced-security 3, sentry 4); CI
failing; merge conflict`. An approved PR with unaddressed threads shows up in
"Needs you" with the approval in its status, so nothing is hidden by the
grouping.
## How the signals are read
"Feedback not addressed" comes from GitHub's own review-thread state, not a
timestamp guess. A thread that is unresolved and whose last comment is from
someone other than the PR author is waiting on the author. The status names
who opened each such thread, so bot threads (Copilot, Sentry, CodeQL) are
told apart from a colleague's at a glance. Threads marked outdated (the code
they point at has since changed) are counted separately: often already fixed
by a push and only needing a reply or a resolve.
Feedback left in a review body rather than an inline thread has no resolved
state, so it falls back to activity: a human's non-empty `COMMENTED` review
left on the current head commit, with no PR comment or thread reply from the
author after it, is reported as `review comment from <who> newer than the
author's last push or reply`. Bot review bodies are left out because they
summarize findings that also arrive as threads. Read the review itself before
treating it as answered.
"Pushed since a review" means the PR's head commit is no longer the one the
review was left on, not a comparison of commit dates: a commit made before a
review and pushed after it keeps its earlier date.
Approval is read from each reviewer's latest approve/request-changes review,
not only `reviewDecision`. On repos without required reviews (e.g. mit-learn)
`reviewDecision` stays empty even after an approval. Where it is
`REVIEW_REQUIRED` despite an approval and nobody has requested changes, the
status says `more approval required` and the PR is not counted as approved.
Each change request is handed back to its reviewer on its own, by a push
after that reviewer's review or a re-request of that reviewer. The PR stays in
"Needs you" only while some change-requester has neither.
`mergeability not computed yet` means GitHub hasn't evaluated the PR since its
last push or base change. It is not a conflict; it usually resolves the next
time anything views the PR.
Merge rights come from the viewer's permission on the repo. On an upstream
project where that is below write (e.g. TRIAGE on openedx-platform, READ on
apache/apisix), an approved, green PR reads `a maintainer has to merge` and
stays in "Waiting on others".
## Limits
- `--author` defaults to `@me`. PRs where the user is a requested _reviewer_
are a different query (`gh search prs --review-requested @me`); say so
rather than mixing the two.
- Each scope's search returns at most 200 PRs, and the script warns on stderr
when one hits that limit, because the report is then truncated. Archived
repos are left out, since nothing on their PRs can be acted on.
- Bot-authored PRs (Renovate, Dependabot) only appear with an explicit
`--author`. For those, the `renovate-security-triage` and
`dependency-updates` skills fit better.
## Acting on the report
Every action is visible to others or hard to reverse, so confirm the specific
PRs first. [references/action-playbook.md](references/action-playbook.md) has
the commands and edge cases. In short:
- Needs you: read the open threads and fix, reply, or resolve. The
[`address-pr-feedback`](../address-pr-feedback/SKILL.md) skill does this for
one PR at a time. CI failures and conflicts need case-by-case work.
- Ready to merge: `scripts/merge-pr.sh <repo> <number> [merge|squash|rebase]`,
after the user has seen the list.
- No human reviewer yet: `scripts/request-review.sh <repo> <number>
[copilot|claude|all]` for a bot first pass, or an in-session review with
the [`code-review`](../code-review/SKILL.md) skill. Never request a human
reviewer the user didn't name.
- Waiting on others: nothing by default. Offer a nudge only past a staleness
threshold the user gives.
- Drafts: report only.
Files in this skill
- SKILL.md
- references/action-playbook.md
- scripts/classify-prs.sh
- scripts/enrich-prs.sh
- scripts/fetch-prs.sh
- scripts/merge-pr.sh
- scripts/pr-detail.sh
- scripts/request-review.sh
Attribution
Related skills
View all in devops →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.