Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每次有人检查某些内容时,我都可以让 post commit hook 发送一封电子邮件,但我可以将其限制为仅当人们将某些内容检查到 tags 目录中时?基本上,当有人推广发布时,我想要一个通知。我的颠覆在 Windows 上运行。有任何想法吗?
您将获得作为 post-commit 钩子的参数提交的 repo 和修订。
用于svnlook获取修订中更改的文件的路径,并查看它是否有tags并触发您的电子邮件。
svnlook
tags
svnlook changed -r $rev $repo
以上将给出看起来像的线条
A trunk/app/file.cs
使用该信息查看是否添加了标签并在提交后写信给您
是的,提交后脚本的第一个参数是存储库路径;在那里寻找<whatever>/tags,只有在找到时才发送电子邮件。
<whatever>/tags