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

Function github_headers

scripts/issue_duplicate_check_openhands.py:75–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73
74
75def github_headers() -> dict[str, str]:
76 headers = {
77 'Accept': 'application/vnd.github+json',
78 'User-Agent': 'openhands-issue-duplicate-check',
79 'X-GitHub-Api-Version': '2022-11-28',
80 }
81 github_token = os.environ.get('GITHUB_TOKEN')
82 if github_token:
83 headers['Authorization'] = f'Bearer {github_token}'
84 return headers
85
86
87def openhands_headers() -> dict[str, str]:

Callers 1

fetch_issueFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected