update_issue
Modify an existing GitHub issue by updating its title, body, labels, and state. Provide repository owner, name, issue number, and new content.
Instructions
Updates an existing issue in the specified GitHub repository. Args: repo_owner (str): The owner of the repository. repo_name (str): The name of the repository. issue_number (int): The number of the issue to update. title (str): The new title for the issue. body (str): The new body content for the issue. labels (list[str], optional): A list of labels to assign to the issue. Defaults to an empty list. state (str, optional): The state of the issue ('open' or 'closed'). Defaults to 'open'. Returns: Dict[str, Any]: The updated issue data as returned by the GitHub API if the update is successful. None: If an error occurs during the update process. Error Handling: Logs an error message and prints the traceback if the request fails or an exception is raised.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_owner | Yes | ||
| repo_name | Yes | ||
| issue_number | Yes | ||
| title | Yes | ||
| body | Yes | ||
| labels | No | ||
| state | No | open |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| number | Yes | ||
| title | Yes | ||
| body | Yes | ||
| state | Yes | ||
| user | Yes | ||
| created_at | Yes | ||
| updated_at | Yes | ||
| labels | Yes |