将TFS签入策略限制为特定用户 [英] Restricting TFS check-in policy to specific users

查看:132
本文介绍了将TFS签入策略限制为特定用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题说明了一切.我们的团队希望以某种方式将TFS签入策略限制为某些特定用户.

The title says it all really. Our team wants to somehow restrict a TFS check-in policy to some select users.

我们目前正在使用类似的方法,但是要限制服务器路径.我们有一个自定义路径策略策略,该策略可以正常工作.我想知道创建这样的另一个策略是否合理,该策略将某个其他策略的范围限定在一组预定义的用户中.

We are currently using something similar, but to restrict server paths. We have a Custom Path Policy policy attached to a Work Items policy in our project, and it is working as expected. I wondered if it would be reasonable to create another policy like that, that scopes a certain other policy to a group of predefined users.

我们想将类似的功能与此代码审核政策一起使用,以强制要求在签入前对进入公司的新开发人员进行代码审查,而不是对每个人都进行.

We would like to use a feature like that with this code review policy, to enforce that code reviews are requested before check-in for the new developers that enter the company, but not for everyone.

推荐答案

这是我的自定义策略实现.如果用户没有特定权限(不是特定组的成员),则可以运行子策略.

Here is my custom policy implementation. It allows to run child policy if user does not have certain permissions (is not member of certain group).

它可以与TFS Power Pack和Colins中的自定义路径策略一起使用ALMCornerCheckinPolicies 这样一来,仅在某些项目|文件|文件夹中并且只有在用户未经代码审查就没有签入权限的情况下,才可能要求进行代码审查.

It can be used with custom path policy from TFS power pack and ColinsALMCornerCheckinPolicies Then it will be possible to ask for code review only for certain projects|files|folders and only if user has no permission to check-in without code review.

https://github.com/oleksabor/GroupMembershipPolicy

您已经说过,这是从TFS迁移过来的,但是我想在这里留下答案,因为还没有找到原始问题的解决方案.

You have said that had migrated from TFS but I'd like to leave answer here because have not found solution for original question.

这篇关于将TFS签入策略限制为特定用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆