Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import GitHub issues and wikis to BitBucket?

Recently, we decided to migrate our projects from GitHub to BitBucket. For now, I tested with few projects as BitBucket has direct import feature. Everything is just fine, except GitHub issues, and wikis are not imported. Since most of the projects are still in development and some in production, issues, and wikis are important for us.

I did quick Google search and could not find proper solution.

Is there any solution?

like image 579
chhantyal Avatar asked Jun 20 '12 12:06

chhantyal


People also ask

Can I fork from GitHub to Bitbucket?

When creating a new repository in BitBucket, click the button Import repository at the top right. Enter the https url found when clicking Clone or download in Github for the repository you want to fork. Give your repository a name, configure your privacy settings, and there you go!


5 Answers

Today we added proper issue import and export to Bitbucket. You can export an entire repo's issue tracker as a zip and then re-import on a different repo.

You can also create your own zips and so you could write very migration scripts to and from other issue trackers (e.g. GitHub).

Details: https://confluence.atlassian.com/display/BITBUCKET/Export+or+Import+Issue+Data

File format and data layout: https://confluence.atlassian.com/pages/viewpage.action?pageId=330796872

like image 50
Erik van Zijst Avatar answered Oct 03 '22 13:10

Erik van Zijst


I was also searching for a way to import Github issues to Bitbucket but didn't find one, so I wrote a script to do that: https://github.com/sorich87/github-to-bitbucket-issues-migration.

For the wiki, it's a Git repository that you can simply clone. https://github.com/blog/699-making-github-more-open-git-backed-wikis

like image 41
sorich87 Avatar answered Oct 03 '22 15:10

sorich87


Both github and bitbucket have REST APIs for issues (GitHub's, Bitbucket's), so you could write a (fairly) quick script to migrate issues. However, GitHub has no API for wikis (Bitbucket does), so, unfortunately, you'll likely have to do that by hand.

like image 40
Rafe Kettler Avatar answered Oct 03 '22 13:10

Rafe Kettler


This is the step by step version of Erik van Zijst's resources:

http://codetheory.in/export-your-issues-and-wikis-from-github-repo-and-import-to-bitbucket-migration/

It shows step by step how to do it. Hopefully this will save you some time.

I was able to import all my Github issues into BitBucket!

like image 41
infinite-loop Avatar answered Oct 03 '22 14:10

infinite-loop


There is another tool, written in python, for exporting github issues into bitbucket issues export format.

You can check it at gibiexport

like image 39
kikeenrique Avatar answered Oct 03 '22 15:10

kikeenrique