forked from svigerske/trac-to-github
-
Notifications
You must be signed in to change notification settings - Fork 5
/
migrate.cfg.example
99 lines (67 loc) · 2.49 KB
/
migrate.cfg.example
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
# Sample configuration file, update to meet your needs
[source]
# URL of the XML-RPC trac endpoint
# unauthenticated works for globally readable trac instances
url: https://example.com/xmlrpc
# authentication broken with python3.8 or later, due to
# https://github.com/python/cpython/issues/82219
# url: http://username:password@example.com/trac/login/xmlrpc
# optional path to trac instance used to convert some attachments
path: /path/to/trac/instance
# 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: yes
# 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 : /path/to/attachment/directory
# 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]
# destination of wiki
url: https://destination/of/wiki
migrate : yes
# Directory where to write wiki pages to
# This can be a clone of the projects wiki repository
export_dir : /path/to/wiki/repository
[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://issues/repo
# git repo with all branches
git_repo_url: https://git/repo
# Trac to GitLab user mappings
usernames = {
'trac1': 'git1',
'trac2': 'git2'
}
# URL of the GitHub web API (default: https://api.github.com)
# url: https://api.github.com
# project's path
project_name: username/projectname
# GitHub access token
token : 2190valkrl123c
# GitHub username (if no token specified)
username: johndoe
# GitHub password (if no token specified)
password: secret