update_release
Update a release by its numeric ID: edit title, notes, draft/prerelease flags, target commit, or rename the tag. Publish drafts by setting draft to false.
Instructions
Update one release by numeric id (PATCH: only provided fields change). Edit name (title), body (release notes), toggle draft/prerelease, retarget via target_commitish, or rename the tag via tag_name. tag_name renames the underlying Git tag — use with care. Publish a draft by setting draft=false. Get the id from list_releases or get_release_by_tag first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Release ID (the numeric id from list_releases, NOT the tag name) | |
| body | No | New release notes / content (supports Markdown) | |
| name | No | New release title | |
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| draft | No | Draft status | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| tag_name | No | New tag name (renames the tag; use with care) | |
| prerelease | No | Prerelease status | |
| target_commitish | No | New target branch or commit SHA |