| name | github-cli |
| description | Use the GitHub CLI (gh) for PRs, issues, reviews, and repo operations. Authenticated via GH_TOKEN env var or local gh auth. |
The GitHub CLI (gh) is available and authenticated. Use it for GitHub operations.
Auth: Works via GH_TOKEN env var (Claude Code Web) or local gh auth login (local CLI).
PULL REQUESTS
List open PRs
gh pr list
List PRs by branch
gh pr list --head <branch>
gh pr list --base <branch>
View PR details
gh pr view
gh pr view <number>
gh pr view <number> --comments
View review threads (inline comments)
gh api graphql \
-F owner='EmilioEsposito' -F name='portfolio' -F number=<number> \
-f query='
query($owner:String!,$name:String!,$number:Int!){
repository(owner:$owner,name:$name){
pullRequest(number:$number){
reviewThreads(first:100){
nodes{
path
line
isResolved
comments(first:50){
nodes{
author{login}
createdAt
body
}
}
}
}
}
}
}' \
--jq '
.data.repository.pullRequest.reviewThreads.nodes[]
| "FILE: " + (.path // "unknown")
+ " LINE: " + ( (.line|tostring) // "unknown" )
+ " RESOLVED: " + (.isResolved|tostring)
+ "\n"
+ ( .comments.nodes[]
| " ["+.author.login+"] " + .body )
+ "\n"
'
Check PR CI status
gh pr checks <number>
ISSUES
List issues
gh issue list
gh issue list --label "bug"
gh issue list --assignee @me
View issue
gh issue view <number>
REPO & MISC
View recent releases
gh release list
View repo info
gh repo view
Search code
gh search code "pattern" --repo EmilioEsposito/portfolio
API calls
gh api repos/EmilioEsposito/portfolio/pulls/<number>/comments