Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/commands/event/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,17 @@ function parseSingleArg(arg: string): ParsedPositionalArgs {
issueShortId: beforeSlash,
};
}

// "project/EVENT-ID" → project slug + hex event ID.
// e.g., "my-project/abc123def456abc123def456abc123de"
// Must be checked before parseSlashSeparatedArg, which throws ContextError
// for any single-slash arg, assuming it's "org/project" with a missing ID.
if (afterSlash && HEX_ID_RE.test(normalizeHexId(afterSlash))) {
return {
eventId: normalizeHexId(afterSlash),
targetArg: beforeSlash,
};
}
}

const { id: eventId, targetArg } = parseSlashSeparatedArg(
Expand Down
Loading