Code Search Tool
How to search diff and repository content on the PullRequest platform.
Last updated
How to search diff and repository content on the PullRequest platform.
Last updated
The Search tool on the reviewer platform, accessible via the magnified glass icon in the sidebar, can be used to search both the files involved in a code review job's diff and the entire repository.
We strongly encourage PullRequest reviewers to make regular use of the Search tool.
Its behavior is similar to that of a standard IDE. Use cases include things like looking up the definition of a method to ensure proper use on a file it's imported on.
Search results are split into 2 sections:
Files touched in this review
Other files in this repository
These are fairly self-descriptive. The Files touched in this review section will contain results limited only to the files involved in the code review job's diff while the Other files in this repository section will contain results from a query of the entire repository.
Selecting a result from Other files in this repository will render its file with the line number highlighted. Note that since the file is not part of the code review's diff, no inline comments can be inserted.
Diff file search results can be viewed for all code review jobs, however, some projects will not have repository search results enabled.
When a search query of the entire repository cannot be executed, a message will appear in the Other files in this repository results section: