( url: string, )
| 117 | } |
| 118 | |
| 119 | export function parseGitHubUrl( |
| 120 | url: string, |
| 121 | ): { owner: string; repo: string } | null { |
| 122 | const match = url.match(/github\.com\/([^/]+)\/([^/]+?)(?:\.git)?(?:\/|$)/); |
| 123 | if (!match) return null; |
| 124 | return { owner: match[1], repo: match[2] }; |
| 125 | } |
| 126 | |
| 127 | export function githubAuthHeaders(): Record<string, string> { |
| 128 | return process.env.GITHUB_TOKEN |
no outgoing calls
no test coverage detected