| name | gh-pr |
| description | GitHub CLI (`gh pr`) operations for pull requests, reviews, PR checks, and PR branches. You MUST load this skill when working with the `gh pr` command. |
| license | MIT |
gh-pr Skill
Use gh pr to natively interact with GitHub Pull Requests. Prefer native
fields and explicit routing over brittle shell post-processing.
When to Use
- User asks to manage, review, or inspect a pull request using the GitHub CLI (
gh pr).
- Task involves querying PR CI/CD checks (
gh pr checks), logs, mergeability, or PR metadata.
- Need to perform branch synchronizations, merges, or PR updates inside a GitHub Actions runtime.
- Extracting PR context, reviewing diffs, or commenting on specific PR threads.
Mindmap of Commands
mindmap
root((gh-pr))
checkout
Check out a PR in git
checks
Show CI status for a PR
close
Close a PR
comment
Add a comment to a PR
create
Create a pull request
diff
View changes in a PR
edit
Edit a PR (title, body, labels, etc.)
list
List pull requests in a repository
lock
Lock PR conversation
merge
Merge a PR
ready
Mark a draft PR as ready for review
reopen
Reopen a closed PR
revert
Revert a merged PR
review
Add a review to a PR (approve, request changes, or comment)
status
Show status of relevant PRs
unlock
Unlock PR conversation
update-branch
Update a PR branch with latest from base
view
View PR details, description, and comments
Advanced PR Workflows