https://github.com/sulthonzh/gh-prs
See open pull requests across all your GitHub repos at a glance
https://github.com/sulthonzh/gh-prs
cli github productivity pull-requests
Last synced: 8 days ago
JSON representation
See open pull requests across all your GitHub repos at a glance
- Host: GitHub
- URL: https://github.com/sulthonzh/gh-prs
- Owner: sulthonzh
- Created: 2026-06-09T08:54:35.000Z (23 days ago)
- Default Branch: main
- Last Pushed: 2026-06-18T17:07:12.000Z (14 days ago)
- Last Synced: 2026-06-18T19:06:39.812Z (14 days ago)
- Topics: cli, github, productivity, pull-requests
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gh-prs
See all open pull requests across your GitHub repos at a glance.
Because `gh pr list` only shows one repo at a time, and you've got better things to do than check them one by one.
## Why
You maintain multiple repos. PRs pile up. Some go stale. Some need review. You want a single command that shows you everything โ who opened what, how old it is, whether it's been reviewed.
## Install
```bash
npm install -g gh-prs
```
Requires [gh CLI](https://cli.github.com) to be installed and authenticated.
## Usage
```bash
# Show all open PRs across your repos
gh-prs
# Specific repo
gh-prs --repo sulthonzh/my-project
# Different user
gh-prs --user octocat
# JSON output (pipe to jq, scripts, etc.)
gh-prs --json
# Markdown (paste into docs/issues)
gh-prs --markdown
# Summary stats
gh-prs --summary
# Show repos with zero PRs too
gh-prs --verbose
# Limit repos scanned
gh-prs --limit 10
```
## Output Example
```
๐ Open Pull Requests (3 total across 15 repos)
๐ sulthonzh/my-project
#42 Fix auth bug [bug]
by @dev1 ยท 2 days old ยท 2 files (+10/-5) โ
#43 Add feature X [DRAFT]
by @dev2 ยท 8 days old ยท 5 files (+100/-20) โณ
๐ sulthonzh/other-project
#7 Update dependencies
by @dependabot ยท 1 day old ยท 1 file (+5/-5) โณ
```
Review status icons:
- โ
Approved
- ๐ Changes requested
- โณ Awaiting review
## Summary Mode
```
๐ PR Summary
Total open: 3
Drafts: 1
Stale (7+ days): 1
Repos with PRs: 2/15
```
## Exit Codes
- `0` โ No open PRs found
- `1` โ PRs found (useful for CI: "no stale PRs" checks)
- `2` โ Error (gh not installed, auth issue, etc.)
## Programmatic API
```js
const { run, formatJSON, formatSummary } = require('gh-prs');
// Full run
const output = await run({ user: 'octocat', json: true });
// Or use formatters directly
const { getOpenPRs, formatText } = require('gh-prs');
const prs = getOpenPRs('user/repo');
console.log(formatText([{ repo: 'user/repo', prs }]));
```
## License
MIT