Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.15 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.15 KB

rh2gh - Redmine to Github Issue Migrator

NOTE: this was built for the sole purpose of migrating the pgAdmin 4 Redmine project at https://redmine.postgresql.org/projects/dave-test to Github. It's entirely possible^Wprobable that there is some project-specific code in here!

This is a WIP tool for migrating issues from Redmine to Github.

It will iterate through the issues on a Redmine project, and migrate them to issues on a Github project, adding notes and links to indicate what data was migrated, including the timing and author where that cannot be set on Github (the author in particular is very hard, as it would require pre-mapping Redmine usernames to Github usernames).

Usage

  1. copy config.py.in to config.py and edit as required.
  2. Create a virtualenv, and install the requirements from requirements.txt.
  3. With the virtualenv activated, run:
    python3 rm2gh.py
  4. Wait a very long time.

Note that Github have a 5000 request per day API limit. Each issue that's migrated may require multiple API requests. Plan your migration accordingly.

TODO

  • Figure out a better way to deal with inline-images in comments.