forked from svigerske/trac-to-github
-
Notifications
You must be signed in to change notification settings - Fork 5
/
migrate.cfg.sagetracmigrationarchive
513 lines (472 loc) · 14.9 KB
/
migrate.cfg.sagetracmigrationarchive
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
# 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://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: sage_trac
# optional prefix used for Trac milestones
milestone_prefix: sage-
# 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: yes
# If defined, import only these issues
# only_issues: [ 30000, 30001 ]
#only_issues: [5601,]
# 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=50&order=id&page=1&desc=False
#filter_issues: max=2796&order=id&page=2
# Add a label to all migrated issues
# add_label: Websites
# Keywords to migrate to labels (all others go to the issue description)
keywords_to_labels: {
'beginner': 'good first issue',
'documentation': 'c: documentation',
'docstring': 'c: documentation',
'doc': 'c: documentation',
'cygwin': 'c: porting: cygwin',
'python3': 'c: python3',
'py3': 'c: python3',
'build': 'c: build',
'spkg-configure': 'c: build: configure',
'linear algebra': 'c: linear algebra',
'asymptotics': 'c: asymptotic expansions',
'calculus': 'c: calculus',
'categories': 'c: categories',
'category': 'c: categories',
'docker': 'c: docker',
'elliptic curve': 'c: elliptic curves',
'elliptic curves': 'c: elliptic curves',
'manifold': 'c: manifolds',
'manifolds': 'c: manifolds',
'memory leak': 't: bug',
'memleak': 't: bug',
'number field': 'c: number fields',
'number fields': 'c: number fields',
'database': 'c: databases',
'doctest': 't: tests',
'doctests': 't: tests',
'coverage': 't: tests',
'performance': 't: performance',
'game theory': 'c: game theory',
'geometry': 'c: geometry',
'graph': 'c: graph theory',
'graphs': 'c: graph theory',
'coercion': 'c: coercion',
'cryptography': 'c: cryptography',
'crypto': 'c: cryptography',
'cython': 'c: cython',
'finite_state_machine': 'c: finite state machines',
'groups': 'c: group theory',
'interact': 'c: interact',
'matroid': 'c: matroid theory',
'modular': 'c: modular forms',
'padic': 'c: padics',
'padics': 'c: padics',
'p-adic': 'c: padics',
'p-adics': 'c: padics',
'pickling': 'c: pickling',
'combinatorics': 'c: combinatorics',
'solaris': 'c: porting: solaris',
'graphics': 'c: graphics',
'quadratic forms': 'c: quadratic forms',
'numerical': 'c: numerical',
'optional packages': 'c: packages: optional',
'linear programming': 'c: linear programming',
'milp': 'c: linear programming',
'mip': 'c: linear programming',
'lp': 'c: linear programming',
'mixedintegerlinearprogram': 'c: linear programming',
'mixed integer programming': 'c: linear programming',
'linearconstraint': 'c: linear programming',
'linear optimization': 'c: linear programming'}
# Migrate milestones
migrate_milestones: yes
# Map for certain Trac milestones to GitHub labels
milestones_to_labels = {
'sage-duplicate/invalid/wontfix': 'r: invalid',
'sage-duplicate/invalid': 'r: invalid',
'sage-duplicate': 'r: duplicate',
'sage-wait': 'pending',
'sage-pending': 'pending',
'sage-feature': 't: feature',
'sage-wishlist': 'wishlist item',
'sage-combinat': 'c: combinatorics',
'sage-symbolics': 'c: symbolics',
'sage-i18n': 'c: translations'}
# Map for canceld Trac milestones to GitHub milestones
canceled_milestones = {
'sage-2.8.4.3': 'sage-2.8.5',
'sage-3.2.4': 'sage-3.3',
'sage-4.0.3': 'sage-4.1',
'sage-4.1.3': 'sage-4.2',
'sage-4.4.5': 'sage-4.5',
'sage-4.7.3': 'sage-4.8',
'sage-6.11': 'sage-7.0',
'sage-7.7': 'sage-8.0'}
# Map for certain Trac components to GitHub labels
components_to_labels = {
'solaris': 'c: porting: solaris',
'cygwin': 'c: porting: cygwin',
'freebsd': 'c: porting: bsd',
'aix or hp-ux ports': 'c: porting: aix or hp-ux',
'experimental package': 'c: packages: experimental',
'optional packages': 'c: packages: optional',
'packages': 'c: packages: standard',
'plotting': 'c: graphics',
# More readable with space
'website/wiki': 'c: website / wiki',
# Old components, merge into something larger
'debian-package': 'c: distribution',
'pbuild': 'c: build',
'spkg-check': 'c: packages: standard',
'sage-check': 'c: packages: standard',
'packages: huge': 'c: packages: optional',
'notebook': 'c: user interface',
'sage-mode': 'c: user interface',
# Tiny components, merge into something larger
'linbox': 'c: packages: standard',
'givaro': 'c: packages: standard',
'doctest': 't: tests',
'doctests': 't: tests',
'doctest coverage': 't: tests',
'memleak': 't: bug',
'performance': 't: performance',
'refactoring': 't: refactoring',
# Suppress
'misc': None}
# Colors for labels by label name or label category
label_colors = {
'component': '0000ff',
'keyword': '0000ff',
'c: documentation': '0075ca',
'c: translations': '0075ca',
'c: website / wiki': '0075ca',
'c: python3': '0000b0',
'c: build': '0000b0',
'c: build: configure': '0000b0',
'c: c lib': '0000b0',
'c: cython': '0000b0',
'c: distribution': '0000b0',
'c: docker': '0000b0',
'c: doctest framework': '0000b0',
'c: notebook': '0000b0',
'c: packages': '0000b0',
'c: packages: optional': '0000b0',
'c: packages: standard': '0000b0',
'c: packages: experimental': '0000b0',
'c: packages: huge': '0000b0',
'c: performance': '0000b0',
'c: pickling': '0000b0',
'c: porting': '0000b0',
'c: porting: bsd': '0000b0',
'c: porting: solaris': '0000b0',
'c: porting: cygwin': '0000b0',
'c: porting: aix or hp-ux': '0000b0',
'c: python3': '0000b0',
'c: refactoring': '0000b0',
'c: relocation': '0000b0',
'c: scripts': '0000b0',
'c: spkg-check': '0000b0',
'c: user interface': '0000b0',
's: needs work': 'ffff00',
's: needs info': 'ffff00',
's: needs review': '7fff00',
's: positive review': 'dfffc0',
'help wanted': '008672',
'p: blocker / 1': 'ff0000',
'p: critical / 2': 'ff7700',
'p: major / 3': 'ffbb00',
'p: minor / 4': 'ffe799',
'p: trivial / 5': 'fff9e5',
'pending': '008672',
'wishlist item': 'e81ff9',
'good first issue': '7057ff',
't: bug': 'd73a4a',
't: enhancement': '696969',
't: performance': '696969',
't: refactoring': '696969',
't: feature': '696969',
't: tests': '696969',
'r: invalid': 'c6c6c6',
'r: duplicate': 'c6c6c6',
'resolution': 'c6c6c6'}
# values to be ignored on issue conversion
ignored_values = ['N/A', 'tba', 'T.b.a.', 'tbd', 'tdb', 'closed', 'Somebody', 'somebody', 'someone', 'failure']
# mentions to be ignored on issue conversion
ignored_mentions = ['option',
'coerce_binop',
'cached_function',
'cached_method',
'cached_methods',
'cached',
'wraps',
'sage_wraps',
'combinatorial_map',
'staticmethod',
'options',
'parallel',
'run_once',
'interact',
'suboption',
'suboptions',
'rpath',
'executable_path',
'parallel-decorated',
'cached-method',
'wrap_sage',
'memoize',
'cached_method_with_conditions',
'property',
'fork',
'failure',
'retry',
'lazy_attribute',
'abstract_method',
'abstract_class',
'default_method',
'dummy_method',
'lazy_class_attribute',
'weak_cached_function',
'cache_if_immutable',
'cached_in_parent',
'total_ordering',
'decorator',
'rename_keyword']
# names not associated to real users, to be ignored on issue conversion
ignored_names = ['28', '4ti2', 'a', 'b', 'c', 'h', 'z', 'anonymous', 'anybody', 'cc', 'myself',
'combinatorics', 'days100', 'days28', 'days64', 'documentation', 'reference',
'sage-', 'sage-algebra', 'sage-combinat-commits', 'sage-combinat-devel',
'sd45', 'sd48', 'sd67', 'Somebody', 'someone',
'amog2011', 'beginner', 'BugReporter', 'combinat', 'demosd235',
'factorization', 'fields', 'forextrading11', 'mike3050', 'number', 'singular']
[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
# https://github.github.com/enterprise-migrations/#/./2.1-export-archive-format?id=attachment
export_dir = archive/attachments
# export_url is configured automatically based on issues_repo_url
[wiki]
migrate : no
#url: https://github.com/sagemath/sage/wiki
url: https://github.com/sagemath/trac_to_gh/wiki
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
# project's path
project_name: sagemath/sage
# GitHub access token
#token : 2190valkrl123c
# GitHub username (if no token specified)
#username: johndoe
# GitHub password (if no token specified)
#password: secret
# optional prefix used for GitHub milestones
milestone_prefix: sage-
# Where to write a migration archive
migration_archive: archive
# Trac to GitHub user mappings
username_modules = ['contributors_from_sage_trac_users',
'contributors_from_sage_developer_map']
usernames = {
# Bots
'git': 'sagetrac-git',
'galois': 'sagetrac-gitlab-bot',
'github': 'sagetrac-github-bot',
'vbraun_spam': 'sagetrac-vbraun-spam',
# Users not in contributors list
'Winfried': 'w-bruns',
'asmeurer': 'asmeurer',
'benjaminjones': 'benjaminfjones',
'alexk': 'alex-konovalov',
'ebriand': 'EmmanuelJeanBriand',
'justin': 'RalphieBoy',
'anna': 'annahaensch',
# Typos and ad-hoc mentions
'aghitza': 'aghitza',
'Alexander': 'alexanderdreyer',
'Andrew': 'sheerluck',
'anne': 'anneschilling',
'Anne': 'anneschilling',
'antoine-leudiere': 'kryzar',
'artal': 'enriqueartal',
'aschiling': 'anneschilling',
'aschillin': 'anneschilling',
'ashilling': 'anneschilling',
'beezer': 'rbeezer',
'Ben': 'bhutz',
'berocal': 'burcin',
'bhackl': 'behackl',
'bhtuz': 'bhutz',
'Boussicault': 'sagetrac-boussica',
'Braun': 'vbraun',
'brucin': 'burcin',
'bsalisbury': 'bsalisbury1',
'bsalisbury01': 'bsalisbury1',
'burchin': 'burcin',
'campbell': 'theref',
'carus': 'xcaruso',
'cberg': 'sagetrac-chrisjamesberg',
'ccitro': 'craigcitro',
'chaopoton': 'fchapoton',
'chaperon': 'fchapoton',
'chapton': 'fchapoton',
'chrisgorecki': 'sagetrac-goreckc',
'citro': 'craigcitro',
'Cremona': 'JohnCremona',
'dakrenn': 'dkrenn',
'darijg': 'darijgr',
'delecroix': 'videlec',
'diampase': 'dimpase',
'Dima': 'dimpase',
'dima': 'dimpase',
'dimapase': 'dimpase',
'dimapse': 'dimpase',
'dimpasse': 'dimpase',
'djoyner': 'wdjoyner',
'dkernn': 'dkrenn',
'dkirkby': 'sagetrac-drkirkby',
'dkohel': 'sagetrac-kohel',
'Dreyer': 'alexanderdreyer',
'drkirby': 'sagetrac-drkirkby',
'ebray': 'embray',
'fchapoton': 'fchapoton',
'fhivert': 'hivert',
'fidelbarerra': 'sagetrac-fidelbarrera',
'Fili': 'pfili',
'fougeroc': 'sagetrac-Fougeroc',
'fredrik.johannson': 'fredrik-johansson',
'fsaliola': 'saliola',
'gaganskehon': 'sagetrac-gagansekhon',
'gh_timokau': 'timokau',
'gonzalo': 'tornaria',
'gourgoulhon': 'egourgoulhon',
'haensch': 'annahaensch',
'Hutz': 'bhutz',
'jacobkroeker': 'sagetrac-jakobkroeker',
'jas': 'jasongrout',
'jcambell': 'theref',
'jcooley': 'sagetrac-JCooley',
'jcremona': 'JohnCremona',
'jdemeye': 'jdemeyer',
'jdemyer': 'jdemeyer',
'jdmeyer': 'jdemeyer',
'Jeroen': 'jdemeyer',
'jeroen': 'jdemeyer',
'jhpalimieri': 'jhpalmieri',
'Jhpalmieri': 'jhpalmieri',
'jhpalmiery': 'jhpalmieri',
'joyner': 'wdjoyner',
'jpalmieri': 'jhpalmieri',
'jpfori': 'jpflori',
'jrueth': 'saraedum',
'jstarx': 'sagetrac-JStarx',
'kcricsman': 'kcrisman',
'king': 'simon-king-jena',
'kirkby': 'sagetrac-drkirkby',
'kiwifb': 'kiwifb',
'krcisman': 'kcrisman',
'krisman': 'kcrisman',
'lauve': 'alauve',
'linden': 'DisneyHogg',
'loeffler': 'loefflerd',
'mabsoff': 'sagetrac-mabshoff',
'Marc': 'sagetrac-marc-fuentes',
'MartinRubey': 'mantepse',
'Mezzarobba': 'mezzarobba',
'Mike': 'zabrocki',
'millerrl': 'sagetrac-rlmiller',
'minh': 'sagetrac-mvngu',
'Minh': 'sagetrac-mvngu',
'MKoeppe': 'mkoeppe',
'mmadeu': 'mmasdeu',
'mmcarco': 'miguelmarco',
'mmezzaroba': 'mezzarobba',
'mollerhansen': 'sagetrac-dmhansen',
'monteil': 'sagetrac-tmonteil',
'musiker': 'sagetrac-gmoose05',
'mvgnu': 'sagetrac-mvngu',
'nahtann': 'nathanncohen',
'Nathann': 'nathanncohen',
'nbrun': 'nbruin',
'nchoen': 'nathanncohen',
'Nguyen': 'sagetrac-mvngu',
'nils': 'nbruin',
'nochen': 'nathanncohen',
'Noud': 'sagetrac-noud',
'ntheiry': 'nthiery',
'nthierry': 'nthiery',
'ondrej': 'certik',
'palmieri': 'jhpalmieri',
'palmiery': 'jhpalmieri',
'pasechnik': 'dimpase',
'Paul': 'pfili',
'pbori': 'sagetrac-PolyBoRi',
'pfili': 'pfili',
'PolyBori': 'sagetrac-PolyBoRi',
'polybori': 'sagetrac-PolyBoRi',
'rbradshaw': 'robertwb',
'Rishi': 'rishikesha',
'Rishikesh': 'rishikesha',
'rlmillster': 'rlmill',
'rmiller': 'rlmill',
'robertw': 'robertwb',
'RossK': 'sagetrac-rossk',
'rudi': 'sagetrac-Rudi',
'rwb': 'robertwb',
'sage-combant': 'sagetrac-sage-combinat',
'sage-combinat-devel': 'sagetrac-sage-combinat',
'salisbury1': 'bsalisbury1',
'schilling': 'anneschilling',
'Scrimshaw': 'tscrim',
'simon': 'simon-king-jena',
'Simon': 'simon-king-jena',
'simonking': 'simon-king-jena',
'SImonKing': 'simon-king-jena',
'slellievre': 'slel',
'slielievre': 'slel',
'snark': 'SnarkBoojum',
'soe': 'soehms',
'starosta': 'staroste',
'stefan': 'Stefan',
'Stefanf': 'Stefan',
'stump': 'stumpc5',
'tclemans': 'TimothyClemans',
'tdumol': 'TimDumol',
'ThomasKluyver': 'takluyver',
'timothyclemans': 'TimothyClemans',
'TimothyClemens': 'TimothyClemans',
'Travis': 'tscrim',
'tscrm': 'tscrim',
'vbarun': 'vbraun',
'vbaun': 'vbraun',
'vdelacroix': 'videlec',
'vinklein': 'vinklein',
'VivanePons': 'VivianePons',
'vivianepons': 'VivianePons',
'wasI': 'williamstein',
'wdjoyner': 'wdjoyner',
'wstein': 'williamstein',
'xcaruso': 'xcaruso',
'Yi': 'yqiang',
'yiqiang': 'yqiang',
'yqiang': 'yqiang',
'Zabrocki': 'zabrocki',
'Zimmermann': 'zimmermann6'}
unknown_users_prefix: sagetrac-