You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: support numeric project IDs in project slug resolution
When users pass a numeric project ID (e.g., `sentry event view 7275560680 <event-id>`),
`findProjectsBySlug` would reject the API result because the returned slug
didn't match the numeric input. The Sentry API already accepts numeric IDs
via its `project_id_or_slug` parameter, but the CLI discarded these results.
Now `findProjectsBySlug` accepts the API result when the input is all-digits,
allowing numeric project IDs to resolve correctly across all commands that
use project slug search (event view, project view, trace view, log view).
When a numeric ID resolves successfully, a stderr hint suggests using the
slug form for faster lookups. If resolution fails (wrong ID or no access),
the error message notes that numeric IDs may not be supported.
Fixes CLI-7W
0 commit comments