You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
What
2
2
=====
3
3
4
-
This script migrates issues from trac to gitlab.
4
+
This script migrates trac tickets to gitlab issues.
5
5
6
6
Features
7
7
--------
8
8
* Component & Issue-Type are converted to labels
9
-
* Milestones are ignored (or: I did not get the script to set my one single milestone, so I set it manually)
9
+
* Milestones are created in Gitlab from fixture data manualy grabbed from trac (copy/paste)
10
10
* Comments to issues are copied over
11
11
* Wiki Syntax in comments/descriptions is sanitized for my basic usage
12
12
@@ -28,11 +28,12 @@ Target
28
28
*```gitlab_access_token``` - the access token of the user creating all the issues. Found on the account page, e.g. ```secretsecretsecret```
29
29
*```dest_project_name``` - the destination project including the paths to it. Basically the rest of the clone url minus the ".git". E.g. ```jens.neuhalfen/task-ninja```.
30
30
*```milestone_map``` - Maps milestones from trac to gitlab. Milestones have to exist in gitlab prior to running the script (_CAVE_: Assigning milestones does not work.)
31
+
*```milestone_list``` - Lists milestones from trac with associated metadata. Manually populated at this point by copy/paste out of trac milestone admin page
Copy file name to clipboardExpand all lines: migrate.py
+31-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
importre
2
2
fromreimportMULTILINE
3
+
importsys
3
4
importxmlrpclib
4
5
importgitlab
5
6
"""
@@ -30,6 +31,7 @@
30
31
* ```gitlab_access_token``` - the access token of the user creating all the issues. Found on the account page, e.g. ```secretsecretsecret```
31
32
* ```dest_project_name``` - the destination project including the paths to it. Basically the rest of the clone url minus the ".git". E.g. ```jens.neuhalfen/task-ninja```.
32
33
* ```milestone_map``` - Maps milestones from trac to gitlab. Milestones have to exist in gitlab prior to running the script (_CAVE_: Assigning milestones does not work.)
34
+
* ```milestone_list``` - Lists milestones from trac with associated metadata. Manually populated at this point by copy/paste out of trac milestone admin page
33
35
34
36
License
35
37
========
@@ -52,7 +54,24 @@
52
54
53
55
54
56
dest_project_name="jens.neuhalfen/task-ninja"
55
-
milestone_map= {"M1 - build and tests":"M1 - build and tests" }
0 commit comments