davglass / trac2issues

Trac to GitHub Issues import script
Other
16 stars 7 forks source link

h1. Trac to GitHub Issues conversion script

Imports are now working, including comments

h2. Usage

$ ./trac2issues.py --help
Usage: trac2issues.py [options]

Options:
  -h, --help            show this help message and exit
  -t TRAC, --trac=TRAC  Path to the Trac project to export.
  -p PROJECT, --project=PROJECT
                        Name of the GitHub Project to import into.
  -x, --closed          Include closed tickets.
  -c, --component       Create a label for the Trac component.
  -m, --milestone       Create a label for the Trac milestone.
  -o, --owner           Create a label for the Trac owner.
  -r, --reporter        Add a comment naming the reporter.
  -u URL, --url=URL     The base URL for the trac install (will also link to
                        the old ticket in a comment).
sudo ./trac2issues.py \
    -t /var/lib/trac/davglass \
    -p footest -m -x -o -r -c \
    -u http://bugs.davglass.com/projects/davglass