forked from svigerske/trac-to-github
-
Notifications
You must be signed in to change notification settings - Fork 5
/
migrate.cfg.sagetracwikionly
103 lines (70 loc) · 2.64 KB
/
migrate.cfg.sagetracwikionly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Stand-alone migration of the Sage Trac wiki.
# Copy or symlink to "migrate.cfg" to use.
[source]
# URL of the XML-RPC trac endpoint
# unauthenticated works for globally readable trac instances
url: https://trac.sagemath.org/xmlrpc
# authentication broken with python3.8 or later, due to
# https://github.com/python/cpython/issues/82219
# url: http://username:[email protected]/trac/login/xmlrpc
# optional path to trac instance used to convert some attachments
# path: /path/to/trac/instance
# optional url for cgit repository access
cgit_url: https://git.sagemath.org/sage.git/
# if no, a trac ticket reference is converted to the corresponding issue reference
keep_trac_ticket_references: no
[issues]
# Should we migrate the issues (default = yes)
migrate: no
# If defined, import only these issues
# only_issues: [ 509, 561, 564, 626, 631, 792, 830]
# If defined, do not import these issues
# blacklist_issues: [ 268, 843 ]
# If defined, then this is added to the ticket query string to trac
#filter_issues: max=1000&order=id&desc=False
#filter_issues: max=2796&order=id&page=2
# Add a label to all migrated issues
# add_label: Websites
# Migrate keywords to labels, or add to issue description
# keywords_to_labels: no
# Migrate milestones
migrate_milestones: no
[attachments]
# Export attachement as files to the local filesystem or try to upload them as Gist?
# Gist only allows text files, so binary attachments will be lost
# Gists are associated with the GitHub user, not the project
export : yes
# Path where to store exported attachement
export_dir : attachments
# Base URL under which attachments will be reachable
# It is assumed that the export directory will be put into this location
export_url : http://www.example.org/trac-attachments/foo/bar
[wiki]
#url: https://github.com/sagemath/sage/wiki
url: https://github.com/sagemath/trac_to_gh/wiki
migrate : yes
# Directory where to write wiki pages to
# This can be a clone of the projects wiki repository
export_dir : wiki
[target]
# URL of the GitHub web API (default: https://api.github.com)
# url: https://api.github.com
# repo of all issues converted from trac tickets
issues_repo_url: https://github.com/sagemath/sage
# git repo with all branches
git_repo_url: https://github.com/sagemath/sagetrac-mirror
# Trac to GitLab user mappings
usernames = {
'trac1': 'git1',
'trac2': 'git2'
}
# project's path
project_name: foo/bar
# URL of the GitHub web API (default: https://api.github.com)
# url: https://api.github.com
# GitHub access token
token : 2190valkrl123c
# GitHub username (if no token specified)
username: johndoe
# GitHub password (if no token specified)
password: secret