update_repo
Edit a repository's metadata: name, description, website, visibility, or default branch. Only supplied fields are changed; pass an empty string to clear description or website.
Instructions
Edit ONE repository's metadata (PATCH: only provided fields change). Provide any of name/description/website/private/default_branch. Use description to change the repo description (pass an empty string to clear it). NOTE: name RENAMES the repo and changes its URL — confirm with the user first. Returns the updated repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New repository name (RENAME). Renaming changes the repo URL; use with care. | |
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| private | No | New visibility: true = private, false = public | |
| website | No | New repository homepage/website URL. Pass an empty string to clear. | |
| description | No | New repository description. Pass an empty string to clear the description. | |
| default_branch | No | New default branch name (the branch must already exist in the repo) |