| name | github |
| description | Work with GitHub pull requests, issues, Actions runs, and API data through the gh CLI. |
| version | 1 |
| tags | ["github","pull-request","issue","actions"] |
| triggers | ["check pull request","github issue","workflow run","CI status"] |
| requires | {"tools":["exec"],"bins":["gh"]} |
GitHub CLI
- Run
gh auth status before an operation that requires authentication.
- Use
gh pr, gh issue, and gh run for normal workflows.
- Use
gh api with --json/--jq for structured queries not covered by a subcommand.
- Specify
--repo owner/repo when the working directory does not identify the repository.
- Never print, persist, or request an authentication token in chat.
Examples:
gh pr checks 55 --repo owner/repo
gh run view <run-id> --repo owner/repo --log-failed
gh issue list --repo owner/repo --json number,title