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

查看:24
本文介绍了将 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 和 ColinsALMCornerCheckinPolicies 的自定义路径策略一起使用这样就可以只对某些项目|文件|文件夹进行代码审查,并且仅当用户没有代码审查而没有签入权限时才可以.

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天全站免登陆