Loading...
Loading...
Discover and apply labels to GitHub PRs and issues using the gh CLI. Use when you need to list available labels, add or remove labels on pull requests or issues, or create new labels for a repository.
npx skill4agent add laurigates/claude-plugins github-labels# List all labels with details
gh label list --json name,description,color --limit 50
# Search for specific labels
gh label list --search "bug"
# Output as simple list
gh label list --json name -q '.[].name'# Single label
gh pr create --label "bug"
# Multiple labels (repeat flag)
gh pr create --label "bug" --label "priority:high"
# Comma-separated
gh pr create --label "bug,priority:high"
# Add to existing PR
gh pr edit 123 --add-label "ready-for-review"# Create with labels
gh issue create --label "bug,needs-triage"
# Add to existing issue
gh issue edit 123 --add-label "in-progress"
# Remove label
gh issue edit 123 --remove-label "needs-triage"| Category | Examples |
|---|---|
| Type | |
| Priority | |
| Status | |
| Area | |
gh issue view N --json labelsgh pr create --label "label1,label2"