将 Trac 中的票证链接到变更集
通过使用 Intertrac,我们可以使用以下语法将变更集链接到票证:
前缀:#ticketnumber
这在查看变更集并查看其链接到哪些票证时非常有用。我还注意到您可以在上面的链接上进行搜索,它将返回与该票证相关的所有变更集,我的问题是
我们如何在提交过程中插入指向票证中变更集的链接,或者这可以是通过提交后挂钩完成?
如果能够查看单个票证并查看与该票证相关的变更集,那就太好了?
提前致谢...
By using Intertrac we are able to link the change set to a ticket using the syntax:
prefix:#ticketnumber
This is useful when viewing change sets and seeing which tickets it links to. I also noticed you can do a search on the above link and it will return all the changesets pertaining to that ticket, my question is
How can we insert a link to a change set in a ticket during the commit process, or can this on be done through a post-commit-hook?
It would be nice to be able to look at a single ticket and view the change sets that pertain to that ticket?
Thanks in advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你走在正确的轨道上。提交后挂钩脚本是可行的方法。
http://trac.edgewall.org/browser/trunk/ contrib/trac-post-commit-hook
我目前正在使用它,它非常适合为您提供给定票证的变更集历史记录。
You're on the right track. The post commit hook script is the way to go.
http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook
I'm currently using it and it works great to give you the history of changesets for a given ticket.