开发者

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

1) Are there tools out there?

2) How did you 开发者_开发问答do it?

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:

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

(note that the old issue-import through GitHub support channels is discontinued)

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.

As far as exporting your data from Bugzilla goes, I think your options are:

  • Bugzilla's HTML export
  • Bugzilla JSON-RPC
  • Connecting directly to the bugzilla database

Good luck! If you do write an export script, I'd encourage you to open-source it on GitHub!


I recently encountered the same problem trying to migrate Bugzilla issues of a W3C project to GitHub, so I ended up

  • Writing a RESTful API wrapper, that scrapes the Bugzilla (the W3C bugzilla has the API disabled)
  • Writing a hackish CoffeeScript program/script to use that wrapper and create the issues on 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; 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.

It uses Net::GitHub::V2 for the uploading API and GitHub's oauth system for authentication. It reads the user and repo config from the environment by default because I was running it from other scripts; but all the variables are at the top of the script if you want to customise.

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

You can actually create a lot of integrations with Bugzilla

Note: As of 2020-03-11, www.bondable.com is no longer hosting a web app, and the original link is spammy

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜