Using search filter given @sourcegraph/code-insights-backend team used in a CODEOWNERS rule.
file:has.owners(@sourcegraph/code-insights-backend) works because it matches what is literally in the codeowners file
file:has.owners(code-insights-backend) does not work - but for results in sourcegraph org it should be matching the codeowners entry.
We can do this by having the Ruleset be repo-aware. So that when we're matching the search input, ruleset can consider code-insights-backend be matching this rule because of the context.
This was raised by @sashaostrikov.
Using search filter given
@sourcegraph/code-insights-backend
team used in a CODEOWNERS rule.file:has.owners(@sourcegraph/code-insights-backend)
works because it matches what is literally in the codeowners filefile:has.owners(code-insights-backend)
does not work - but for results in sourcegraph org it should be matching the codeowners entry.We can do this by having the Ruleset be repo-aware. So that when we're matching the search input, ruleset can consider
code-insights-backend
be matching this rule because of the context.