Commit 50dc9b9
committed
docs(search): improve search_code query description to prevent 422 errors
The previous description gave AI models insufficient guidance on
GitHub code search syntax, leading to common mistakes like:
- Using \| instead of /...|.../ for regex OR
- Confusing filename: with path: qualifiers
- Misunderstanding boolean operator precedence
The new description explicitly documents:
- Qualifiers: repo:, org:, language:, path:, path:/regex/, symbol:, content:, is:
- Boolean operators: AND, OR, NOT, parentheses
- Regex syntax: surround with slashes e.g. /foo|bar/
- Glob patterns in path: path:*.ts, path:/src/**/*.js
Fixes #23901 parent 4bded57 commit 50dc9b9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments