diegosouzapw/OmniRoute · error · Error

Expected a GitHub issue or pull request URL

Error message

Expected a GitHub issue or pull request URL

What it means

Error "Expected a GitHub issue or pull request URL" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/lib/issueAgent/recordedTriage.ts:104

  const digestSource = redactSecrets([title, body, ...commentTexts].filter(Boolean).join("\n"));
  const botCommentCount = comments.filter((comment) => comment.isBot === true).length;
  const humanCommentCount = comments.length - botCommentCount;

  return {
    issueTitle: title || null,
    commentCount: comments.length,
    humanCommentCount,
    botCommentCount,
    intent: classifyIntent(digestSource),
    redactedDigestSource: digestSource.slice(0, 1200),
  };
}

export function createRecordedTriageRun(input: RecordedTriageInput): RecordedTriageRun {
  const issueUrl = typeof input.issueUrl === "string" ? input.issueUrl.trim() : "";
  const match = GITHUB_ISSUE_URL.exec(issueUrl);
  if (!match) {
    throw new Error("Expected a GitHub issue or pull request URL");
  }

  const owner = match[1]!;
  const repo = match[2]!;
  const issueNumber = Number(match[3]);
  const repository = `${owner}/${repo}`;

  return {
    accepted: true,
    mode: "recorded-triage",
    runner: "deterministic-recorded-triage",
    runId: buildRunId(repository, issueNumber),
    issueUrl: redactUrlCredentials(issueUrl),
    repository,
    issueNumber,
    dryRun: input.dryRun !== false,
    context: summarizeContext(input.recordedContext),
    steps: [...RECORDED_TRIAGE_STEPS],

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/lib/issueAgent/recordedTriage.ts:104 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/a01369dc31c7bc6d. Report an issue: GitHub.