Skip to content

migrate trac tickets to GitHub issues

License

Notifications You must be signed in to change notification settings

DalavanCloud/trac2gh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trac2gh

tools and sandbox (tools will stay in a separate repo)

Usage

This tools uses the real trac parser, and github3.py You can download the deps by using pipenv

# (sudo pip install pipenv)
pipenv install
. ./.venv/bin/activate

You will need to download the full trac working directory, so that trac is happy, and make the config file point to that copy

cp config.sample ~/trac2gh-config
# edit config to match your needs
trac2gh trac2gh ~/trac2gh-config

In this form, the script can take a long time, and probably is not the best suited, you can also run it in three runs

First script will dump the database to a json file. This can take a long time especially if your mysql database is not in the same network

trac2gh trac2json ~/trac2gh-config dump.json

Second script can be used to make sure the users are correctly mapped to github. In the end the list of unmapped users is printed, with the number of contributions. This allows you to manually find out the mapping for relevent contributors only

trac2gh build-user-mapping ~/trac2gh-config dump.json

Third script is creating the issues in Github, and marking the tickets as migrated.

trac2gh json2gh ~/trac2gh-config dump.json

About

migrate trac tickets to GitHub issues

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%