MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createGithubUrl

Function createGithubUrl

evals/buffbench/pick-commits.ts:326–336  ·  view source on GitHub ↗
(repoUrl: string, sha: string)

Source from the content-addressed store, hash-verified

324}
325
326export 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
338async function screenCommitsWithGpt5(
339 commits: CommitInfo[],

Callers 1

processCommitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected