create_release
Create a release from a Git tag with optional notes, draft, or prerelease status. Auto-creates the tag if missing, defaulting to the repository's default branch.
Instructions
Create a release. tag_name is required (the Git tag, e.g. 'v1.2.0'); the tag is created if it does not exist. name is the human-readable title; body is the release notes (Markdown). target_commitish (branch or SHA) controls where the tag points (defaults to the repo's default branch). draft and prerelease are optional booleans. Returns the created release including its numeric id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Release notes / content (supports Markdown) | |
| name | No | Release title (the human-readable name) | |
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| draft | No | Create as a draft (unpublished) release | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| tag_name | Yes | Git tag name to create the release from (e.g. 'v1.2.0') | |
| prerelease | No | Create as a prerelease | |
| target_commitish | No | Branch or commit SHA the tag is created from (defaults to the repo default branch) |