(repoUrl: string, sha: string)
| 324 | } |
| 325 | |
| 326 | export function createGithubUrl(repoUrl: string, sha: string): string { |
| 327 | // Convert repo URL to GitHub commit URL |
| 328 | let baseUrl = repoUrl |
| 329 | if (baseUrl.endsWith('.git')) { |
| 330 | baseUrl = baseUrl.slice(0, -4) |
| 331 | } |
| 332 | if (baseUrl.startsWith('git@github.com:')) { |
| 333 | baseUrl = baseUrl.replace('git@github.com:', 'https://github.com/') |
| 334 | } |
| 335 | return `${baseUrl}/commit/${sha}` |
| 336 | } |
| 337 | |
| 338 | async function screenCommitsWithGpt5( |
| 339 | commits: CommitInfo[], |