Something went wrong while fetching comments. Please try again.
Created by: tbliu98
Part of #18374
This PR adds highlighting for ranges in the visible portion of repo descriptions that are matched by repo:has.description.
RepoSearchJob construction, compile any repo:has.description patterns into regexes that match case-insensitively and across newline charactersRepoSearchJob execution, get resolved repositories' descriptions from the database, match them against the list of compiled regexes, and return the matched ranges as the field DescriptionMatches on result.RepoMatch
DescriptionMatches to EventRepoMatch and populate it with the values from result.RepoMatch in frontend
descriptionMatches to RepositoryMatch interface in the clienthighlightNode to highlight matched ranges in the RepoSearchResult componentUnit tests, manual testing. highlightNode is well-tested