Loading...
Loading...
GitLab label operations. ALWAYS use this skill when user wants to: (1) list project labels, (2) create new labels, (3) manage label colors and descriptions.
npx skill4agent add grandcamel/gitlab-assistant-skills gitlab-labelglab| Operation | Command | Risk |
|---|---|---|
| List labels | | - |
| Create label | | ⚠️ |
glab label list [options]| Flag | Description |
|---|---|
| Results per page |
| Get all labels |
# List all project labels
glab label list
# List with more results
glab label list --per-page=100glab label create <name> [options]| Flag | Description |
|---|---|
| Label color (hex format, e.g., #ff0000) |
| Label description |
# Create label with default color
glab label create "needs-review"
# Create label with color
glab label create "bug" -c "#ff0000"
# Create label with color and description
glab label create "priority::high" \
-c "#dc3545" \
-d "High priority items requiring immediate attention"
# Create scoped label
glab label create "status::in-progress" \
-c "#ffc107" \
-d "Work in progress"glab label create "priority::critical" -c "#dc3545" -d "Must fix immediately"
glab label create "priority::high" -c "#fd7e14" -d "Fix in current sprint"
glab label create "priority::medium" -c "#ffc107" -d "Fix soon"
glab label create "priority::low" -c "#28a745" -d "Nice to have"glab label create "type::bug" -c "#d73a4a" -d "Something isn't working"
glab label create "type::feature" -c "#0366d6" -d "New feature request"
glab label create "type::docs" -c "#0075ca" -d "Documentation"
glab label create "type::refactor" -c "#6f42c1" -d "Code refactoring"glab label create "status::backlog" -c "#6c757d" -d "In backlog"
glab label create "status::ready" -c "#17a2b8" -d "Ready to start"
glab label create "status::in-progress" -c "#ffc107" -d "Work in progress"
glab label create "status::review" -c "#007bff" -d "In review"
glab label create "status::done" -c "#28a745" -d "Completed"glab label create "needs-review" -c "#d876e3" -d "Needs code review"
glab label create "needs-design" -c "#fbca04" -d "Needs design input"
glab label create "blocked" -c "#b60205" -d "Blocked by external dependency"
glab label create "help-wanted" -c "#008672" -d "Looking for contributors"::priority::high
status::in-progress
type::bug# Create priority labels
glab label create "priority::critical" -c "#dc3545"
glab label create "priority::high" -c "#fd7e14"
glab label create "priority::medium" -c "#ffc107"
glab label create "priority::low" -c "#28a745"
# Create type labels
glab label create "type::bug" -c "#d73a4a"
glab label create "type::feature" -c "#0366d6"
glab label create "type::docs" -c "#0075ca"# List available labels
glab label list
# Create issue with labels
glab issue create -t "Fix login bug" -l "type::bug,priority::high"
# Update issue labels
glab issue update 42 -l "status::in-progress"| Color | Hex | Use For |
|---|---|---|
| Red | | Bugs, critical, blocked |
| Orange | | High priority, warning |
| Yellow | | Medium priority, in-progress |
| Green | | Done, low priority, good first issue |
| Blue | | Features, info, review |
| Purple | | Refactor, enhancement |
| Gray | | Backlog, wontfix |
| Issue | Cause | Solution |
|---|---|---|
| Authentication failed | Invalid/expired token | Run |
| Label already exists | Duplicate name | Use different name or update existing |
| Invalid color | Wrong format | Use hex format: #RRGGBB |
| Permission denied | Not maintainer | Need maintainer+ role |