add_issue_labels
Add labels to a Gitea issue using its number and label names. Keeps existing labels and omits duplicates, adding only the new ones.
Instructions
Add labels to an issue by its index. labels is an array of label NAMES (strings) — NOT ids. Get valid names from list_labels; a name that does not exist errors (404). ADDITIVE: existing labels are kept. Duplicate names (both within the input and against labels already on the issue) are filtered out automatically — only labels not yet present are added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| index | Yes | Issue number | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| labels | Yes | List of label names to add |