通过扫描 @todo 生成 redmine 票证
虽然我的问题在此处得到了部分解答,但我想更进一步。 我想要一个提交后钩子来扫描 @todo 项目,用 redmine 检查它们是否已经作为票证存在,如果不存在,则创建票证并更改 @todo 以将票证号作为前缀。
在示例中,我会写这样的内容:
@todo: catch this possible error X
提交后,我有一个新的Redmine Ticket,其中@todo文本作为标题。然后,一个小脚本获取此票证的 id(在本例中为 12345)并更改源代码语句,以便显示:
@todo:#redmine_12345 catch this possible error X
是否已经有这样的解决方案(或实现我在这里想做的最佳实践)或者是否存在一个简单的方法来做到这一点?
对此有任何想法都会很好!
While my question is partially answered here, i'd lke to go a step further.
I want a post-commit hook to scan for @todo items, check back with redmine and see if they already exist as a ticket and if not, create the ticket and change the @todo to have the ticket number as a prefix.
In example i'll write something like this:
@todo: catch this possible error X
And after commiting, i havbe a new Redmine Ticket with the @todo text as title. Then a little script gets the id of this ticket (in this example 12345) and changes the source code statement so it says:
@todo:#redmine_12345 catch this possible error X
Is there already a solution like this (or a best practise that does what i want to do here) or is there an easy way to do this?
Any thoughts on this would be nice!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论