{"record":{"id":"640eb3192f074237","repo":"diegosouzapw/OmniRoute","slug":"recorded-github-export-must-include-html-url-or-ur","errorCode":null,"errorMessage":"Recorded GitHub export must include html_url or url","messagePattern":"Recorded GitHub export must include html_url or url","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/issueAgent/githubExport.ts","lineNumber":40,"sourceCode":"function normalizeComment(value: unknown): RecordedTriageComment {\n  const row = asRecord(value);\n  const user = asRecord(row.user);\n  const author = readString(row.author) ?? readString(row.user_login) ?? readString(user.login);\n  const body = readString(row.body) ?? \"\";\n  const explicitBot = typeof row.isBot === \"boolean\" ? row.isBot : undefined;\n  return {\n    author,\n    body,\n    isBot: explicitBot ?? isBotUser(user, author),\n  };\n}\n\nexport function normalizeGitHubIssueExport(value: unknown): NormalizedGitHubIssueExport {\n  const root = asRecord(value);\n  const issue = asRecord(root.issue ?? root.pull_request ?? root.pr ?? root);\n  const issueUrl = readString(issue.html_url) ?? readString(issue.url) ?? readString(root.html_url) ?? readString(root.url);\n  if (!issueUrl) {\n    throw new Error(\"Recorded GitHub export must include html_url or url\");\n  }\n\n  const rawComments = Array.isArray(root.comments)\n    ? root.comments\n    : Array.isArray(issue.comments)\n      ? issue.comments\n      : [];\n\n  return {\n    issueUrl,\n    recordedContext: {\n      title: readString(issue.title),\n      body: readString(issue.body),\n      comments: rawComments.slice(0, 100).map(normalizeComment),\n    },\n  };\n}\n","sourceCodeStart":22,"sourceCodeEnd":58,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/issueAgent/githubExport.ts#L22-L58","documentation":"Error \"Recorded GitHub export must include html_url or url\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/issueAgent/githubExport.ts:40 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"}