create_release
Create a new release in a repository. Automatically creates a tag if the specified tag does not exist.
Instructions
Create a new release in a repository.
.. warning::
Side effects: if tag_name does not already exist in the repository,
Gitea creates the tag at the current target_commitish (or default
branch). Creating a draft does NOT skip tag creation — both drafts and
published releases will leave a tag in the repo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| tag_name | Yes | Tag this release is based on. If the tag does not already exist in the repository, Gitea creates it at the time of release. | |
| name | Yes | Release title | |
| body | No | Release notes in Markdown | |
| target_commitish | No | Branch name or commit SHA the tag should point at. Defaults to the repository's default branch. Ignored if the tag already exists. | |
| draft | No | Save as draft without publishing | |
| prerelease | No | Mark as a pre-release |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||