Skip to content

compute: support repo matches

Administrator requested to merge rvt/compute-repo into main

Created by: rvantonder

Previously compute queries only processed FileMatch and Commit/Diff results. This adds Repo results. So now it's possible to do, e.g., lang:rust select:repo content:output(.* -> $repo) which will find all rust files (because lang:rust) and then convert/dedupe to repository results (because select:repo) and finally output(...) now understands repository results and can output a plain string like "Unique Rust Repo!", or metavariables $repo and $content (both of which will just refer to the repo name of a repo result).

Test plan

Added unit test

Merge request reports

Loading