Edit a release
edit_releaseEdit an existing Forgejo or Gitea release in place by release_id, updating notes, title, tag, draft, or prerelease status without deleting the release and losing its assets.
Instructions
Edit an existing release in place, by release_id (requires write mode): name, body (the release notes), tag_name, target_commitish, draft, prerelease. Only the fields you pass are sent, so omitting one leaves it as it is. Reach for this to correct published release notes — deleting and recreating the release would take its assets with it. Same endpoint and response on Forgejo and Gitea.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"release_id": "<release_id>"
},
"name": "edit_release"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | New release notes (markdown). Replaces the existing notes wholesale. | |
| name | No | New release title. | |
| repo | Yes | Repository name. | |
| draft | No | Switch draft state. | |
| owner | Yes | Repository owner. | |
| tag_name | No | Move the release onto a different git tag. | |
| prerelease | No | Switch pre-release state. | |
| release_id | Yes | Release id, from `get_release` or `list_releases`. | |
| target_commitish | No | Commit, branch or ref the tag points at. |