mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
Batch changes: remove structural search example (#62958)
This PR refactors a batch changes example that uses `patterntype:structural` to use regex instead. We no longer expose `patterntype:structural` by default, and want to push users towards other pattern types.
This commit is contained in:
parent
70d2439f77
commit
e45ec596b4
@ -5,7 +5,7 @@ description: |
|
||||
|
||||
# Find all repositories that contain the `fmt.Sprintf` statement using structural search
|
||||
on:
|
||||
- repositoriesMatchingQuery: lang:go fmt.Sprintf("%d", :[v]) patterntype:structural
|
||||
- repositoriesMatchingQuery: lang:go fmt.Sprintf\("%d", \w+\) patterntype:regexp
|
||||
|
||||
steps:
|
||||
# Run Comby (https://comby.dev) to replace the Go statements...
|
||||
|
||||
@ -25,6 +25,6 @@ Set `dev-private` site config to use `"observability.tracing": { "type": "opente
|
||||
|
||||
## Testing
|
||||
|
||||
Use `sg start` to start services, and run a complex query with `&trace=1`, e.g. [`foobar(...) patterntype:structural`](https://sourcegraph.test:3443/search?q=context%3Aglobal+foobar%28...%29&patternType=structural&trace=1)—this will show the `View trace` button in the search results.
|
||||
Use `sg start` to start services, and run a complex query with `&trace=1`, e.g. [`foobar\(\w+\) patterntype:regexp`](https://sourcegraph.test:3443/search?q=context%3Aglobal+foobar%28...%29&patternType=regexp&trace=1)—this will show the `View trace` button in the search results.
|
||||
|
||||
When using different backends, you can use `"urlTemplate"` in `"observability.tracing"` to configure the link.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user