create_github_release
Creates a GitHub release for a specified repository and tag, providing details like release name and body content. Handles errors by logging and returning messages if the process fails.
Instructions
Creates a GitHub release for the specified repository and tag.
Args:
repo_owner (str): The owner of the GitHub repository.
repo_name (str): The name of the GitHub repository.
tag_name (str): The tag name to create the release from.
release_name (str): The name of the release to be created.
body (str): The description or body content of the release.
Returns:
str: A success message if the release is created successfully, or an error message if an exception occurs.
Error Handling:
Logs and returns an error message if the release creation fails due to an exception.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | Yes | ||
release_name | Yes | ||
repo_name | Yes | ||
repo_owner | Yes | ||
tag_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"body": {
"title": "Body",
"type": "string"
},
"release_name": {
"title": "Release Name",
"type": "string"
},
"repo_name": {
"title": "Repo Name",
"type": "string"
},
"repo_owner": {
"title": "Repo Owner",
"type": "string"
},
"tag_name": {
"title": "Tag Name",
"type": "string"
}
},
"required": [
"repo_owner",
"repo_name",
"tag_name",
"release_name",
"body"
],
"title": "create_github_releaseArguments",
"type": "object"
}