最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

git review - Azure DevOps Git Branch Reviewer Policy filter: *.cs;!*.cshtml - Stack Overflow

programmeradmin0浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Testing 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.

发布评论

评论列表(0)

  1. 暂无评论