add_topic
Add one topic to a Gitea repository by name. The topic must be lowercase letters, digits, and hyphens. Idempotent: no error if topic already exists.
Instructions
Add ONE topic to a repository by name. Idempotent: adding an existing topic does not error. Topic name: lowercase letters, digits, and hyphens, starting with a letter/digit. To add several topics at once or to set the exact desired set, prefer replace_topics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| topic | Yes | Topic name to add. Lowercase letters, digits, and hyphens; must start with a letter or digit. |