Repository navigation
Add search query quick reference and fix broken query examples - #2118
Open
marcleblanc2 wants to merge 5 commits into
Open
marcleblanc2 wants to merge 5 commits into
marcleblanc2 wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Direct preview links to pages changed in this PR: |
Contributor
This comment has been minimized.
This comment has been minimized.
Contributor
✅ This revision adds no duplicated passages, and edits none |
Add a Quick reference section to the search query syntax page, adapted from the Code Search cheat sheet and verified on sourcegraph.sourcegraph.com: scope/narrow/version/find, common patterns and filters, and branch and tag searches, which need a repo: filter. Fix examples that failed verification: the file:has.owner filter name, the (open|close)file typo, the has.topic and has.contributor link targets, rev:at.time and before:/after: examples that were invalid on their own, the vscode default branch, the revision glob links to a repository that no longer exists, and the Search Jobs all-branches query. Amp-Thread-ID: https://ampcode.com/threads/T-1f043295-17f3-4f30-b014-ca3aff6606c2 Co-authored-by: Amp <amp@ampcode.com>
Replace examples that searched private repositories, placeholders, or repositories that are no longer on Sourcegraph.com with queries against kubernetes/kubernetes and microsoft/vscode, so every linked example runs on Sourcegraph.com and shows the query it links to. Amp-Thread-ID: https://ampcode.com/threads/T-1f043295-17f3-4f30-b014-ca3aff6606c2 Co-authored-by: Amp <amp@ampcode.com>
Regenerate the Search Jobs results sample from a real search job on kubernetes/kubernetes, replacing output from a private repository, and show file:has.owner with microsoft/vscode, which has a CODEOWNERS file. Ownership search reads owners only from CODEOWNERS files. Amp-Thread-ID: https://ampcode.com/threads/T-1f043295-17f3-4f30-b014-ca3aff6606c2 Co-authored-by: Amp <amp@ampcode.com>
marcleblanc2
force-pushed
the
marc/search-query-quick-reference
branch
from
October 31, 2026 00:02
6649b75 to
b543e28
Compare
Remove the leftover reference to a second way of configuring ownership, state that ownership comes only from committed CODEOWNERS files and which file wins when several exist, and replace examples that searched a private repository with grafana/grafana examples that run on Sourcegraph.com. Fix the list of predicates without parameters. Amp-Thread-ID: https://ampcode.com/threads/T-1f043295-17f3-4f30-b014-ca3aff6606c2 Co-authored-by: Amp <amp@ampcode.com>
marcleblanc2
force-pushed
the
marc/search-query-quick-reference
branch
from
October 31, 2026 00:03
b543e28 to
8554ac6
Compare
Long queries in narrow table columns wrapped onto several lines and squeezed the descriptions. Each example now gets a description line and a full-width query. Amp-Thread-ID: https://ampcode.com/threads/T-1f043295-17f3-4f30-b014-ca3aff6606c2 Co-authored-by: Amp <amp@ampcode.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a quick reference section to the search query syntax page, based on the Code Search cheat sheet
Fixes examples that were invalid or broken
kubernetes/kubernetesandmicrosoft/vscode), and each linked query was verifiedFixed outdated information about Code Ownership