Skip to content

Repo aware monitors: add hook in CommitSearch job

Administrator requested to merge cc/repo-aware-7 into main

Created by: camdencheek

This adds a hook function to the CommitSearch job that will wrap the search call with logic specific to code monitors. Because repo resolution and revision resolution are currently very tied together, I can't just mutate the inputs to the CommitSearch job yet, so for the moment we're stuck with this hook function. Thankfully, the footprint is pretty minimal. All the rest of the logic will live in code monitor packages.

Stacked on #32571 Pulled from #32464

Test plan

Currently unused because CodeMonitorSearchWrapper will always be nil. Other changes are semantics-preserving and covered by existing tests.

Merge request reports

Loading