list_labels
Get a paginated list of labels from a repository to obtain IDs and names needed for label mutations. Use this before any label add, replace, or remove.
Instructions
List labels in a repo. Paginated (page 1-based, limit <= 100); page until a page returns fewer than limit. Each label has id (number), name, color (hex), description. ALWAYS call this before any label mutation — label endpoints mix names and ids (add/replace use NAMES, remove/update/delete use IDS).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| limit | No | Results per page | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) |