Update an existing issue in the specified repository. Args: repo_owner: The name of the repository owner. repo_name: The name of the repository. issue_number: The number of the issue to update. title: The title of the issue. body: The body of the issue. Returns:
(
repo_owner: str,
repo_name: str,
issue_number: int,
title: str,
body: str,
)
| 440 | |
| 441 | |
| 442 | def update_issue( |
| 443 | repo_owner: str, |
| 444 | repo_name: str, |
| 445 | issue_number: int, |
| 446 | title: str, |
| 447 | body: str, |
| 448 | ) -> Dict[str, Any]: |
| 449 | """Update an existing issue in the specified repository. |
| 450 | |
| 451 | Args: |
| 452 | repo_owner: The name of the repository owner. |
| 453 | repo_name: The name of the repository. |
| 454 | issue_number: The number of the issue to update. |
| 455 | title: The title of the issue. |
| 456 | body: The body of the issue. |
| 457 | |
| 458 | Returns: |
| 459 | The status of this request, with the issue details when successful. |
| 460 | """ |
| 461 | url = ( |
| 462 | f"{GITHUB_BASE_URL}/repos/{repo_owner}/{repo_name}/issues/{issue_number}" |
| 463 | ) |
| 464 | payload = {"title": title, "body": body} |
| 465 | try: |
| 466 | response = patch_request(url, payload) |
| 467 | except requests.exceptions.RequestException as e: |
| 468 | return error_response(f"Error: {e}") |
| 469 | return {"status": "success", "issue": response} |
| 470 | |
| 471 | |
| 472 | def _run_git_command(command: List[str], cwd: str) -> CompletedProcess[str]: |
nothing calls this directly
no test coverage detected