---
name: ulk-github
description: "Manage GitHub repos, PRs, issues, and releases using the gh CLI. Use for any GitHub operation. Replaces the GitHub MCP."
---

# GitHub via CLI

## Prerequisite
Verify: `command -v gh && gh auth status`

## Pull Requests
```bash
gh pr create --title "feat: ..." --body "..."
gh pr list --state open
gh pr review <number> --approve
gh pr merge <number> --squash
gh pr checks <number>
```

## Issues
```bash
gh issue create --title "..." --body "..." --label bug
gh issue list --state open --label enhancement
gh issue close <number>
```

## Releases
```bash
gh release create v1.0.0 --generate-notes
gh release list
```

## Code Review
```bash
gh pr diff <number>
gh pr view <number> --json files,additions,deletions
```

## Composition
```bash
# List open PRs with their check status
gh pr list --json number,title,statusCheckRollup | jq '.[] | {number, title, status: .statusCheckRollup[0].status}'

# Create PR from current branch
gh pr create --fill  # Auto-fill title/body from commits
```
