list_labels
Retrieve and filter labels for a GitLab project, optionally including issue counts, merge request counts, and ancestor group labels to organize and categorize project items.
Instructions
List labels for a project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or URL-encoded path | |
| with_counts | No | Whether or not to include issue and merge request counts | |
| include_ancestor_groups | No | Include ancestor groups | |
| search | No | Keyword to filter labels by |
Input Schema (JSON Schema)
{
"properties": {
"include_ancestor_groups": {
"description": "Include ancestor groups",
"type": "boolean"
},
"project_id": {
"description": "Project ID or URL-encoded path",
"type": "string"
},
"search": {
"description": "Keyword to filter labels by",
"type": "string"
},
"with_counts": {
"description": "Whether or not to include issue and merge request counts",
"type": "boolean"
}
},
"required": [
"project_id"
],
"type": "object"
}