Restricting owners-autossign matching with boolean operators

38 views
Skip to first unread message

Alex Croitor

unread,
Jun 26, 2025, 5:58:35 AM6/26/25
to Repo and Gerrit Discussion
Hi,

I have Gerrit 3.10 and the owners-autoassign plugin installed from https://gerrit.googlesource.com/plugins/owners/

I'm trying to understand if i can create an OWNERS matcher to auto-assign a reviewer based on not only a single regex, but a boolean combination of regexes to exclude certain paths.

This is possible with the reviewers plugin from https://gerrit.googlesource.com/plugins/reviewers

As an example, with a reviewers plugin i can create the following rule

[filter "(file:^.*\.md OR file:^.*\.txt) -file:^.*README.md -file:^.*BUILD.md]
reviewer = myteam

Which should match all .md files except README.md and BUILD.md, as well as all .txt files.

Is it possible to create such rules in an OWNERS yaml file for the owners-autoassign plugin? The documentation mentions support for regex or suffixes, but I can't find anything about exclusions or arbitrary boolean expressions.
Reply all
Reply to author
Forward
0 new messages