如何'只看'GitHub仓库中的目录? [英] How to 'Watch' only a directory in a GitHub repository?
问题描述
例如, https://github.com/vanillaforums/Garden
是GitHub存储库。但我只想在资源库中监视此目录 https://github.com/vanillaforums/Garden/tree/master/plugins
。
For example, https://github.com/vanillaforums/Garden
is the GitHub repository. But I only want to 'watch' this directory https://github.com/vanillaforums/Garden/tree/master/plugins
in the repository.
我该怎么做?这似乎没有办法。
How do I do that? There doesn't seem to be a way.
推荐答案
我确认GitHub上的watch功能位于存储库级别,而不是目录级别。
I confirm that the "watch" feature on GitHub is at the repository level, not at the directory level.
如果你真的需要这种手表,你必须实现它(例如,通过本地进程克隆然后拉每x小时回购一次,检查每个新提交的ls-tree,如果检测到' plugins
',则会向您发送一封电子邮件。)
If you really need that kind of watch, you will have to implement it (by, for instance, having a local process cloning then pulling that repo every x hours, checking the ls-tree of each new commits, and sending you an email if 'plugins
' is detected)
这篇关于如何'只看'GitHub仓库中的目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!