| 17 | } |
| 18 | |
| 19 | interface GitHubComment { |
| 20 | id: number; |
| 21 | body: string; |
| 22 | created_at: string; |
| 23 | user: { type: string; id: number }; |
| 24 | } |
| 25 | |
| 26 | async function githubRequest<T>(endpoint: string, token: string, method: string = 'GET', body?: any): Promise<T> { |
| 27 | const response = await fetch(`https://api.github.com${endpoint}`, { |
nothing calls this directly
no outgoing calls
no test coverage detected