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
13 changes: 13 additions & 0 deletions packages/cli/src/commands/event/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,19 @@ export function parsePositionalArgs(args: string[]): ParsedPositionalArgs {
};
}

// Detect issue short ID as second arg (e.g., "my-org/my-project BRUNCHIE-APP-29").
// Auto-redirect to that issue's latest event instead of treating the short
// ID as an event hex ID (which would fail validation).
if (looksLikeIssueShortId(second)) {
const extraEventIds = args.length > 2 ? args.slice(2) : undefined;
return {
eventId: LATEST_EVENT_SENTINEL,
targetArg: first,
issueShortId: second,
extraEventIds,
};
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specified org ignored for short IDs

High Severity

When an issue short ID is the second argument with an org/project target, parsePositionalArgs preserves that target, but resolveIssueShortcut only uses the org for org-all targets. The specified org is dropped and resolution falls back to auto-detection, so the lookup can miss or hit the wrong organization.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 932e569. Configure here.


// Two or more args - first is target, second is event ID.
// Any additional args are extra event IDs (from newline-separated input).
const extraEventIds = args.length > 2 ? args.slice(2) : undefined;
Expand Down
Loading