简体   繁体   English

将 Bugzilla 问题迁移到 github 问题跟踪器

[英]Migrate Bugzilla Issues to github Issue Tracker

I would like to migrate all my Bugzilla issues to an Issue Tracker at github.com ( Example ) (you get an issue tracker per repository).我想将我所有的Bugzilla问题迁移到 github.com 上的问题跟踪器(示例)(每个存储库都有一个问题跟踪器)。

1) Are there tools out there? 1)那里有工具吗?

2) How did you do it? 2)你是怎么做到的?

Thanks for any advices, I will write a summary at the end how I finally did it (hopefully not manually!)感谢您的任何建议,我会在最后写一个总结我最终是如何做到的(希望不是手动!)

You need to export your issues from Bugzilla, and then use the GitHub API to upload the issues into GitHub:您需要从 Bugzilla 导出您的问题,然后使用 GitHub API 将问题上传到 GitHub:

http://developer.github.com/v3/issues/#create-an-issue http://developer.github.com/v3/issues/#create-an-issue

(note that the old issue-import through GitHub support channels is discontinued) (请注意,通过 GitHub 支持渠道的旧问题导入已停止)

This does mean your issue numbers will change, so you might want to append a 'Bugzilla-Id' footer to your issue description, so you can use GitHub's free-text search on issues to find them from the old Bugzilla ids.这确实意味着您的问题编号会发生变化,因此您可能希望在问题描述中附加一个“Bugzilla-Id”页脚,以便您可以使用 GitHub 对问题的自由文本搜索从旧的 Bugzilla id 中找到它们。

As far as exporting your data from Bugzilla goes, I think your options are:就从 Bugzilla 导出数据而言,我认为您的选择是:

Good luck!祝你好运! If you do write an export script, I'd encourage you to open-source it on GitHub!如果您确实编写了导出脚本,我鼓励您在 GitHub 上将其开源!

I recently encountered the same problem trying to migrate Bugzilla issues of a W3C project to GitHub, so I ended up我最近在尝试将 W3C 项目的 Bugzilla 问题迁移到 GitHub 时遇到了同样的问题,所以我最终

I hope that my script can be easily modified to fit the purposes of you, too.我希望我的脚本也可以轻松修改以适合您的目的。

I wrote a Perl script to handle this last year;去年我写了一个 Perl 脚本来处理这个问题; effectively you save the bugs you want as XML via Bugzilla's built-in UI for it, and the script uploads them as individual issues.您可以通过 Bugzilla 的内置 UI 有效地将所需的错误保存为 XML,然后脚本将它们作为单独的问题上传。

It uses Net::GitHub::V2 for the uploading API and GitHub's oauth system for authentication.它使用Net::GitHub::V2作为上传 API 和 GitHub 的 oauth 系统进行身份验证。 It reads the user and repo config from the environment by default because I was running it from other scripts;默认情况下,它从环境中读取用户和 repo 配置,因为我是从其他脚本运行它的; but all the variables are at the top of the script if you want to customise.但是如果你想自定义,所有的变量都在脚本的顶部。

https://github.com/rowanj/BugzillaMigrate https://github.com/rowanj/BugzillaMigrate

You can do that with the help of Bondable https://web.archive.org/web/20160304172242/http://www.bondable.com/integrations/p/services/bugzilla您可以在 Bondable https://web.archive.org/web/20160304172242/http://www.bondable.com/integrations/p/services/bugzilla的帮助下做到这一点

You can actually create a lot of integrations with Bugzilla你实际上可以创建很多与 Bugzilla 的集成

Note: As of 2020-03-11, www.bondable.com is no longer hosting a web app, and the original link is spammy注意:截至2020-03-11,www.bondable.com 不再托管网络应用程序,原始链接为垃圾邮件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM