CODEOWNERS requiring more than one approval but omit certain folders
Summary
We are having an issue with CODEOWNERS not fitting an approval criteria on our team.
Normally, to omit certain folders under a certain section you would list more specific folders later in a section header. However, if you require more than one approval for some sections, but omit certain folders it will not be sufficient.
Take a look at this real life example we have in one of our project:
[TEAM1][2] @team1
/folder1
[TEAM2][2] @team2
/folder2
[TEAM3][3] @team3
/
<some how omit if changes happen on folder2 and folder1>
We want the ability to have:
- at least 3 approvals from team3 if changes fall under anywhere but folder1 and folder2.
- at least 2 approvals from team2 if changes fall under folder2
- at least 2 approvals from team1 if changes fall under folder1
Please note the different number of approvals required. I submitted a support ticket (https://support.gitlab.com/hc/en-us/requests/528581) and the support engineer also agreed that there is no declaration of CODEOWNERS that can support this requirement