in src/mcp/github-checks-server.ts [206:220]
function extractJobIdFromUrl(detailsUrl: string, repoFullName: string): number | null {
// Check if URL is related to the correct repository
if (!detailsUrl.includes(repoFullName)) {
return null;
}
// Extract job ID from URL pattern /job/{jobId}
const match = detailsUrl.match(/\/job\/(\d+)/);
if (!match || !match[1]) {
return null;
}
const jobId = parseInt(match[1], 10);
return isNaN(jobId) ? null : jobId;
}