{"record":{"id":"a01369dc31c7bc6d","repo":"diegosouzapw/OmniRoute","slug":"expected-a-github-issue-or-pull-request-url","errorCode":null,"errorMessage":"Expected a GitHub issue or pull request URL","messagePattern":"Expected a GitHub issue or pull request URL","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/issueAgent/recordedTriage.ts","lineNumber":104,"sourceCode":"  const digestSource = redactSecrets([title, body, ...commentTexts].filter(Boolean).join(\"\\n\"));\n  const botCommentCount = comments.filter((comment) => comment.isBot === true).length;\n  const humanCommentCount = comments.length - botCommentCount;\n\n  return {\n    issueTitle: title || null,\n    commentCount: comments.length,\n    humanCommentCount,\n    botCommentCount,\n    intent: classifyIntent(digestSource),\n    redactedDigestSource: digestSource.slice(0, 1200),\n  };\n}\n\nexport function createRecordedTriageRun(input: RecordedTriageInput): RecordedTriageRun {\n  const issueUrl = typeof input.issueUrl === \"string\" ? input.issueUrl.trim() : \"\";\n  const match = GITHUB_ISSUE_URL.exec(issueUrl);\n  if (!match) {\n    throw new Error(\"Expected a GitHub issue or pull request URL\");\n  }\n\n  const owner = match[1]!;\n  const repo = match[2]!;\n  const issueNumber = Number(match[3]);\n  const repository = `${owner}/${repo}`;\n\n  return {\n    accepted: true,\n    mode: \"recorded-triage\",\n    runner: \"deterministic-recorded-triage\",\n    runId: buildRunId(repository, issueNumber),\n    issueUrl: redactUrlCredentials(issueUrl),\n    repository,\n    issueNumber,\n    dryRun: input.dryRun !== false,\n    context: summarizeContext(input.recordedContext),\n    steps: [...RECORDED_TRIAGE_STEPS],","sourceCodeStart":86,"sourceCodeEnd":122,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/issueAgent/recordedTriage.ts#L86-L122","documentation":"Error \"Expected a GitHub issue or pull request URL\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/issueAgent/recordedTriage.ts:104 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}