Skip to main content

convert Trac tickets to Github issues

Project description

Tratihubis converts Trac tickets to Github issues by using the following steps:

  1. The user manually exports the Trac tickets to convert to a CSV file.

  2. Tratihubis reads the CSV file and uses the data to create Github issues and milestones.

Installation

To install tratihubis, use pip or easy_install:

$ pip install tratihubis

If needed, this also installs the PyGithub package.

Usage

Information about Trac tickets to convert has to be provided in a CSV file. To obtain this CSV file, create a new Trac query using the SQL statement stored in query_tickets.sql and saving the result by clicking “Download in other formats: Comma-delimited Text” and choosing for example /Users/me/mytool/tickets.csv as output file.

Next create a config file to describe how to login to Github and what to convert. For example, you could store the following in ~/mytool/tratihubis.cfg:

[tratihubis]
user = someone
password = secret
repo = mytool
tickets = /Users/me/mytool/tickets.csv

Then run:

$ tratihubis ~/mytool/tratihubis.cfg

This tests that the input data and Github information is valid and writes a log to the console describing which operations would be performed.

To actually create the Github issues, you need to enable to command line option --really:

$ tratihubis --really ~/mytool/tratihubis.cfg

Be aware that Github issues and milestones cannot be deleted in case you mess up. Your only remedy is to remove the whole repository and start anew. So make sure that tratihubis does what you want before you enable --really.

Limitations

Currently tratihubis only converts tickets with their descriptions and milestones. It also creates milestones as needed.

Github issues get the same owner as the Trac ticket. This only works if the Trac user has the same name on Github. If this is not the case, manually edit the owner and reporter columns in the tickets CSV.

The following information is not converted:

  • Github issues remain open even if the Trac ticket has been closed.

  • Trac comments are discarded instead of converted to Github comments.

  • Trac ticket details on type and resolution are discarded instead of converted to Github labels.

  • Trac Wiki markup remains instead of being converted to Github Markdown.

If you want to implement any of these features, create a fork and open a pull request at https://github.com/roskakori/tratihubis.

License

Copyright (c) 2012, Thomas Aglassinger. All rights reserved. Distributed under the BSD License.

Changes

Version 0.1, 2012-05-01

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tratihubis-0.1.zip (17.8 kB view details)

Uploaded Source

File details

Details for the file tratihubis-0.1.zip.

File metadata

  • Download URL: tratihubis-0.1.zip
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tratihubis-0.1.zip
Algorithm Hash digest
SHA256 d154cda50195892f46075d411410b87b1642c4e363ed869946fc0645390cea73
MD5 2e8f4ffec7dde169c7b7970ab1b7601b
BLAKE2b-256 4aa653e3dafefb3542c90ac500b5ca56d822f3d2f5c07c2584bc8845fdee804d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page