()
| 73 | |
| 74 | |
| 75 | def 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 | |
| 87 | def openhands_headers() -> dict[str, str]: |