Pull Requests
List pull requests
When the cache is fresh, results are served from disk. Otherwise the GitHub API is used.
Filter by state
gh-cached pr list # open (default)
gh-cached pr list --state closed
gh-cached pr list --state merged
gh-cached pr list --state all
Filter by author or assignee
Filter by branch
Filter by draft status
Filter by label
Labels use AND logic. Repeat the flag to require all specified labels:
Search
Case-insensitive substring match against title and body:
Limit results
When the total exceeds the limit, a summary is printed to stderr:
JSON output
Outputs a pretty-printed JSON array of pull request objects.
Disable title truncation
By default, titles are truncated to 55 characters. Use --no-truncate to show full titles:
View a single pull request
Show comments
Force refresh
Bypass the cache and fetch the latest data from GitHub, updating the cache:
JSON output
Example output
pr list
#10 Add new feature feature → main approved 3 2025-01-15
#9 Fix edge case [draft] fix-bug → dev review required 1 2025-01-14
pr view
#10 Add new feature
OPEN • opened by octocat • 3 comment(s)
Branch: feature → main
Review: approved
Labels: enhancement
Assignees: alice, bob
Created: 2025-01-08 11:00
URL: https://github.com/octocat/hello-world/pull/10
This PR adds a new feature...
── Comment 1 by reviewer1 (2025-01-09 08:30) ──
Looks good, approved!