(repository: str, issue_number: int)
| 126 | |
| 127 | |
| 128 | def fetch_issue(repository: str, issue_number: int) -> dict[str, Any]: |
| 129 | if not REPOSITORY_PATTERN.fullmatch(repository): |
| 130 | raise ValueError(f'Invalid repository format: {repository}') |
| 131 | return request_json( |
| 132 | GITHUB_API_BASE_URL, |
| 133 | f'/repos/{repository}/issues/{issue_number}', |
| 134 | headers=github_headers(), |
| 135 | ) |
| 136 | |
| 137 | |
| 138 | def escape_json_text(value: str | None) -> str: |
no test coverage detected