如何以编程方式向 Tracker、MantisBT 或 Trac 提交错误?
我有一个程序,我已经在家里研究了一段时间,最后我决定把它扔到 SourceForge 上。 SourceForge 提供 Tracker、MantisBT 或 Trac 来进行错误跟踪。
我的应用程序已经有一个“抱歉,发生错误”对话框,但我想添加一个“投诉”按钮,该按钮将向我的错误跟踪器提交错误。 有人尝试过使用 Tracker 来做到这一点吗? 您可以通过查询字符串接口或类似的方式提交匿名错误吗? 或者,如果 Tracker 做不到,MantisBT 怎么样? 还是特拉克?
I've got a program that I've been working on at home for a while, and I decided finally to throw it up on SourceForge. SourceForge offers Tracker, MantisBT, or Trac for bug tracking.
My app already has a "Sorry, an error occurred" dialog, but I'd like to add a "Complain about it" button that will submit a bug to my bug tracker. Has anyone tried to do this with Tracker? Can you submit anonymous bugs via a query string interface, or something along those lines? Or, if Tracker can't do it, how about MantisBT? Or Trac?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
编程访问:
如果您的应用程序恰好是在 Eclipse 上构建的,则可以使用现有的 Mylyn 插件 - 从版本 3.2 开始,它们都提供一键安装 (参考)。
Programmatic access:
If your application happens to be built on Eclipse, you can use the existing Mylyn plugins - they're both offered with 1-click install since version 3.2 (reference).
此外,Mantis 1.1.x(也许更高版本的 1.2.x)有一个 php 脚本 (core/checkin.php),当 repo 和 mantis 位于同一主机上时,可以从提交后挂钩调用该脚本。 您只需要为钩子提供粘合剂,例如 bash,然后将所有注释提交为用户定义的“vcs”用户名,或者对 php 进行小修改以确定进行提交的用户。
在更高的 1.1.x 版本中,有一个 checkincurl.php 可以解决 mantis 和存储库未并置时的使用问题。
Also, Mantis 1.1.x (and perhaps later 1.2.x) has a php script (core/checkin.php) that can be called from a post-commit hook when the repo and mantis live on the same host. You just need to provide the glue for the hook, e.g. bash, and either commit all notes as a user defined 'vcs' userame or make a small modification to the php to determine the user making the commit.
In the later 1.1.x versions there is a checkincurl.php that will address usage when mantis and the repo are not collocated.