| name | github |
| description | Interact with GitHub repositories, pull requests, issues, and code search. Use for repo management and code exploration. |
GitHub
Manage repos, PRs, issues, and search code via the GitHub REST API.
Environment Variables
GITHUB_ACCESS_TOKEN - GitHub personal access token
Commands
github repos [-l limit]
github prs -o <owner> -r <repo> [-s open|closed|all] [-l limit]
github pr <number> -o <owner> -r <repo>
github my-prs [-f created|assigned|review] [-s state]
github issues -o <owner> -r <repo> [-s state] [--labels bug,feature]
github create-issue -o <owner> -r <repo> -t "Bug title" [-b "Description"] [--labels bug]
github search -q "useState filename:*.tsx" [-l limit]
Output Format
JSON arrays/objects. Example for prs:
[
{ "number": 42, "title": "Fix login", "author": "user1", "draft": false, "url": "https://github.com/..." }
]