Skip to content

Commit b58dd1b

Browse files
committed
fix: address BugBot review — restore api --verbose flag and add unmapped route fallback
1 parent 710b68b commit b58dd1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/sentry-cli/skills/sentry-cli/references/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Make an authenticated API request
2323
- `-H, --header <value>... - Add a HTTP request header in key:value format`
2424
- `--input <value> - The file to use as body for the HTTP request (use "-" to read from standard input)`
2525
- `--silent - Do not print the response body`
26+
- `--verbose - Include full HTTP request and response in the output`
2627
- `-n, --dry-run - Show the resolved request without sending it`
2728

2829
**Examples:**

script/generate-skill.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ const GLOBAL_FLAG_NAMES = new Set([
138138
"help",
139139
"helpAll",
140140
"log-level",
141-
"verbose",
142141
]);
143142

144143
// ---------------------------------------------------------------------------
@@ -606,9 +605,9 @@ function generateCompactCommandsSection(
606605
lines.push(generateCompactCommandLine(cmd));
607606
}
608607

609-
// Add reference file pointer
610-
const refName = ROUTE_TO_REFERENCE[route.name];
611-
const refFile = refName ? referenceFiles.get(refName) : undefined;
608+
// Add reference file pointer (fallback matches groupRoutesByReference)
609+
const refName = ROUTE_TO_REFERENCE[route.name] ?? route.name;
610+
const refFile = referenceFiles.get(refName);
612611
if (refFile) {
613612
lines.push("");
614613
lines.push(`→ Full flags and examples: \`references/${refFile}\``);

0 commit comments

Comments
 (0)