MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / fetch_issue

Function fetch_issue

scripts/issue_duplicate_check_openhands.py:128–135  ·  view source on GitHub ↗
(repository: str, issue_number: int)

Source from the content-addressed store, hash-verified

126
127
128def 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
138def escape_json_text(value: str | None) -> str:

Callers 1

mainFunction · 0.70

Calls 2

request_jsonFunction · 0.70
github_headersFunction · 0.70

Tested by

no test coverage detected