Migrate Bugzilla Issues to github Issue Tracker

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


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.