Commit c8ee923
committed
fix: avoid double-prefixing in buildCommandHint for slashed args (CLI-8C)
When users pass org-prefixed issue args like `saber-ut/103103195`,
buildCommandHint would add another `<org>/` prefix, producing
nonsensical hints like `sentry issue view <org>/saber-ut/103103195`.
Fix: detect when the input already contains a slash and show it as-is,
since the user already provided the org/project context.
Fixes CLI-8C (50 events, 8 users).1 parent 5e5a4e6 commit c8ee923
File tree
2 files changed
+20
-0
lines changed- src/commands/issue
- test/commands/issue
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
59 | 74 | | |
60 | 75 | | |
61 | 76 | | |
| |||
0 commit comments