Script to migrate Trac tickets to GitHub issues and the Trac wiki to markdown. Input: https://trac.sagemath.org/ ➠ Intermediate: https://github.com/sagemath/trac_to_gh ➠ Output: https://34.105.185.241/sagemath/sage-all-2023-01-14-015/issues
This script migrates milestones, issues/tickets, and wiki pages from Trac to GitHub.
The script has its origin at https://github.com/moimael/trac-to-gitlab,
which then was extended to suite a specific use case of SVN+Trac to GitLab migration.
Next, GitLab specific code was removed, and a migration to GitHub was added.
In its present form, it is used for the migration of SageMath from
https://trac.sagemath.org/ to GitHub. This migration is described in more detail in
https://trac.sagemath.org/ticket/30363
docs/Github-vs-Gitlab-vs-trac.md compares
Github and Trac,
focusing on the specific differences that are important to the SageMath
community.
Migrating a Trac project to GitHub is a relatively complex process involving four steps:
The script migrate.py takes care of the third and fourth bullet points.
Usage:
migrate.cfg./migrate.py).See docs/Migration-Trac-to-Github.md for details of the migration process
and a proposed workflow on GitHub (with transition guide from Trac for developers).
archive/, containing records for issues (converted from Trac tickets).wiki/ like Issues-33xxx.minimized_issue_comments.json that lists the IDs of issue comments thatwiki/ that can beInstead of creating a migration archive, the script can directly add issues to a GitHub project.
See migrate.cfg.example for a sample configuration for this mode of operation.
LGPL license version 3.0.
requirements.txt