I would like to know if creation of filter like showed on my image in Azure DevOps Git Branch Reviewer Policy is working:
I would like to review all *.cs files only but not the *.cshtml. It seems I need to specify this not as I receive approval that contains no one *.cs file but in this request for my review there are *.cshtml.
Filter is ''''.cs;!.cshtml'''
I would like to know if creation of filter like showed on my image in Azure DevOps Git Branch Reviewer Policy is working:
I would like to review all *.cs files only but not the *.cshtml. It seems I need to specify this not as I receive approval that contains no one *.cs file but in this request for my review there are *.cshtml.
Filter is ''''.cs;!.cshtml'''
Share Improve this question asked Mar 19 at 7:15 Bastien VandammeBastien Vandamme 18.5k36 gold badges127 silver badges215 bronze badges1 Answer
Reset to default 0Testing in my Azure repo, the filter shown in your screenshot is correct.
As shown in my screenshot, when adding a new .cs
file, reviewer is added automatically. When updating .cshtml
file, no reviewer is required.
The wildcard *
matches any number of characters. So *.cs
and *.cshtml
match all cs and cshtml files. !
added as a prefix is used to exclude the path. ;
can be used as a separator to specify multiple paths.