我可以强制为任何用户创建的所有repos添加Git Service Hook吗? [英] Can I enforce add a Git Service Hook for all repos created by any user?

查看:72
本文介绍了我可以强制为任何用户创建的所有repos添加Git Service Hook吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想将一组服务挂钩应用于在TFS实例上创建的任何Git存储库。


这是为了强制执行所有存储库通用的某些规则和自动化。


我知道如何以编程方式添加服务挂钩,但我需要检测何时创建Git存储库服务器。


有没有更好的方法来实现这个/


谢谢,


Sebastian

解决方案

HI Sebastian Slutzky,



谢谢在这里发布。



默认情况下,没有强制在TFS中添加Git服务挂钩的功能。如果要检测何时创建git存储库,可以尝试使用以下插件,此插件中有一个
存储库创建事件:


https://github.com/kria/TfsNotificationRelay


或者你可以尝试创建自己的插件。



最好的问候


Limitxiao Gao


Hi,

I'd like to apply a set of service hooks to any Git repository created on a TFS Instance.

This is to enforce certain rules and automation that are common to all repositories.

I know how you can add service hooks programatically, but i would need to detect when a Git repository is created on the server.

Is there a better way to achieve this/

Thanks,

Sebastian

解决方案

HI Sebastian Slutzky,

Thank you for posting here.

There is no such feature to enforce add a Git Service hook in TFS by default. If you want to detect when a git repository is created, you could try to use the following plugin, there is a repository created event in this plugin:

https://github.com/kria/TfsNotificationRelay

Or you could try to create your own plugin.

Best Regards

Limitxiao Gao


这篇关于我可以强制为任何用户创建的所有repos添加Git Service Hook吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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