create_tag
Create a tag on the latest commit of a GitHub repository. Specify the repository owner, repository name, tag name, and message.
Instructions
Creates a new tag in the specified GitHub repository. Args: repo_owner (str): The owner of the repository. repo_name (str): The name of the repository. tag_name (str): The name of the tag to create. message (str): The message associated with the tag. Returns: Dict[str, Any]: The response data from the GitHub API if the tag is created successfully. None: If an error occurs during the tag creation process. Error Handling: Logs errors and prints the traceback if fetching the latest commit SHA fails or if the GitHub API request fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_owner | Yes | ||
| repo_name | Yes | ||
| tag_name | Yes | ||
| message | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||