如何以编程方式向Tracker,MantisBT或Trac提交错误?

时间:2022-03-18 07:15:52

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.

我有一个程序,我一直在家里工作了一段时间,我决定最后把它扔在SourceForge上。 SourceForge提供Tracker,MantisBT或Trac进行错误跟踪。

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?

我的应用程序已经有一个“抱歉,发生错误”对话框,但我想添加一个“抱怨它”按钮,它会向我的错误跟踪器提交错误。有没有人试图用Tracker做到这一点?你能通过查询字符串界面提交匿名错误,还是沿着那些行提交?或者,如果Tracker无法做到,MantisBT怎么样?还是Trac?

2 个解决方案

#1


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).

如果您的应用程序恰好是在Eclipse上构建的,那么您可以使用现有的Mylyn插件 - 从版本3.2(参考)开始,它们都提供了一键安装。

#2


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.

此外,Mantis 1.1.x(以及可能更晚的1.2.x)有一个php脚本(core / checkin.php),当repo和mantis位于同一主机上时,可以从post-commit钩子调用它。你只需要为钩子提供胶水,例如bash,并将所有注释作为用户定义的'vcs'userame提交,或者对php进行一些小修改以确定用户进行提交。

In the later 1.1.x versions there is a checkincurl.php that will address usage when mantis and the repo are not collocated.

在后面的1.1.x版本中,有一个checkincurl.php,它将解决当mantis和repo没有并置时的使用问题。

#1


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).

如果您的应用程序恰好是在Eclipse上构建的,那么您可以使用现有的Mylyn插件 - 从版本3.2(参考)开始,它们都提供了一键安装。

#2


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.

此外,Mantis 1.1.x(以及可能更晚的1.2.x)有一个php脚本(core / checkin.php),当repo和mantis位于同一主机上时,可以从post-commit钩子调用它。你只需要为钩子提供胶水,例如bash,并将所有注释作为用户定义的'vcs'userame提交,或者对php进行一些小修改以确定用户进行提交。

In the later 1.1.x versions there is a checkincurl.php that will address usage when mantis and the repo are not collocated.

在后面的1.1.x版本中,有一个checkincurl.php,它将解决当mantis和repo没有并置时的使用问题。