github-pr-query
SolidQuery GitHub pull requests with jq filtering and reusable selectors.
Code & Development 4,612 stars
420 forks Updated today MIT
Install
Quality Score: 91/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# GitHub Pull Request Query Skill
Query GitHub pull requests efficiently with built-in jq filtering.
## Important: jq Parameter is Optional
The `--jq` parameter is **optional**. Without `--jq`, this skill returns **schema and data size information** instead of full data.
Use this to avoid oversized responses and inspect structure before targeted queries.
Use `--jq '.'` to get all data, or use a more specific filter for targeted results.
## Usage
Use this skill to query pull requests from the current repository or any specified repository.
### Basic Query (Returns Schema Only)
To list pull requests from the current repository:
```bash
./query-prs.sh
# Returns schema and data size, not full data
```
### Get All Data
To get all PR data:
```bash
./query-prs.sh --jq '.'
```
### With Repository
To query a specific repository:
```bash
./query-prs.sh --repo owner/repo
```
### With jq Filtering
Use the `--jq` argument to filter and transform the output:
```bash
# Get only open PRs
./query-prs.sh --jq '.[] | select(.state == "open")'
# Get PR numbers and titles
./query-prs.sh --jq '.[] | {number, title}'
# Get PRs by a specific author
./query-prs.sh --jq '.[] | select(.author.login == "username")'
# Get merged PRs from last week
./query-prs.sh --jq '.[] | select(.mergedAt != null)'
# Count PRs by state
./query-prs.sh --jq 'group_by(.state) | map({state: .[0].state, count: length})'
```
### Common Options
- `--state`: Filter by state (open, closed, merged, all). ...
Details
- Author
- github
- Repository
- github/gh-aw
- Created
- 10 months ago
- Last Updated
- today
- Language
- Go
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Solid
github-issue-query
Query GitHub issues with jq filtering and reusable selectors.
4,612 Updated today
github Code & Development Solid
github-discussion-query
Query GitHub discussions with jq filtering and reusable selectors.
4,612 Updated today
github Code & Development Listed
github
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
2 Updated today
KCNyu