Show a dashboard of actionable PRs you've authored. Use when the user wants to see their open PRs, check PR status, review their PR pipeline, or find PRs that need attention.
Show all open PRs you've authored that need your attention, grouped by repo and status.
$ARGUMENTS — Optional org name or org/repo to filter results. If omitted, show PRs across all repos.
Search for all open PRs authored by the current user:
gh search prs --author=@me --state=open --limit 100 --json repository,number,title,url,updatedAt,isDraft
If $ARGUMENTS is provided:
/ (e.g. acme/api), add --repo=<value>--owner=<value>If no PRs are found, report that and stop.
For each PR, fetch detailed status:
gh pr view <number> -R <owner/repo> --json number,title,url,reviewDecision,statusCheckRollup,mergeable,isDraft,reviews
Classify each PR into one or more of these statuses based on the response:
isDraft is truereviewDecision is APPROVED, all status checks pass, and mergeable is MERGEABLEreviewDecision is CHANGES_REQUESTED, or there are unresolved review threadsstatusCheckRollup has conclusion of FAILURE, TIMED_OUT, or ACTION_REQUIREDmergeable is CONFLICTINGAssign each PR a primary status using this priority (highest first): Changes Requested > Failing CI > Merge Conflicts > Ready to Merge > Draft. If a PR has secondary issues, note them inline.
Skip PRs that don't match any of the five statuses above (e.g., still awaiting review with CI green and no conflicts).
Print the dashboard grouped by repository, then by status category within each repo.
Format:
# PR Dashboard — 8 actionable PRs
## acme/api (3)
### Ready to Merge
1. #201 — "feature/cache Add response caching" — approved by @alice, @bob — all checks passing
### Changes Requested
2. #195 — "fix/auth-flow Fix token refresh race condition" — @carol requested changes (2 unresolved)
### Failing CI
3. #210 — "chore/deps Bump dependencies" — 2 checks failing: `lint`, `test-integration`
## acme/web (3)
### Changes Requested
4. #87 — "feature/dashboard Add analytics dashboard" — @dave requested changes (5 unresolved) — also has merge conflicts
### Merge Conflicts
5. #82 — "fix/nav Fix mobile nav overflow" — needs rebase
### Draft
6. #91 — "feature/settings User settings page" — draft
Only show status categories that have PRs in them. Omit empty categories.
gh CLI for all GitHub interactions.