forked from trustmaster/trac2github
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtrac2github.cfg_template
129 lines (110 loc) · 3.92 KB
/
trac2github.cfg_template
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
<?php
/**
* @package trac2github
* @version 1.1
* @author Vladimir Sibirov
* @author Lukas Eder
* @copyright (c) Vladimir Sibirov 2011
* @license BSD
*/
// GitHub username
$username = 'Put your github username here';
// GitHub password or personal access token (see https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ )
$password = 'Put your github password here';
// GitHub organization or personal site
$project = 'Organization or User name';
// GitHub repository
$repo = 'GitHub repository';
// Email address added to API requests (in case GitHub needs to contact you)
$user_email = 'Put your email address here';
// Array for translating Trac usernames to usernames shown in GitHub.
// If desired, prefix an actual GitHub username with '@' so the name becomes a mentioned user.
// By default, users mentioned in an issue receive notices of changes in the issue.
$users_list = array(
'TracUsermame' => 'GithubUsername',
'John.Doe' => '@johndoe'
'retired.user' => 'retired.user',
'anonymous' => 'anonymous',
'nobody' => 'anonymous',
);
//Restrict to certain components (null or Array with components name).
$use_components = null;
//$use_components = array('ios_app');
// The PDO driver name to use.
// Options are: 'mysql', 'sqlite', 'pgsql'
$pdo_driver = 'mysql';
// MySQL connection info
$mysqlhost_trac = 'Trac MySQL host';
$mysqluser_trac = 'Trac MySQL user';
$mysqlpassword_trac = 'Trac MySQL password';
$mysqldb_trac = 'Trac MySQL database name';
// Path to SQLite database file
$sqlite_trac_path = '/path/to/trac.db';
// Postgresql connection info
$pgsql_host = 'localhost';
$pgsql_port = '5432';
$pgsql_dbname = 'Postgres database name';
$pgsql_user = 'Postgres user name';
$pgsql_password = 'Postgres password';
// Do not convert milestones at this run
$skip_milestones = false;
// Do not convert labels at this run
$skip_labels = false;
// Mapping from field names to GitHub labels
// T: type
// C: component
// P: priority
// R: resolution
// S: severity
// M: milestones (as labels)
$remap_labels = array(
'T: defect' => 'bug',
'T: feature' => 'enhancement',
'T: enhancement' => 'enhancement',
'T: task' => 'enhancement',
'P: highest' => 'P: highest',
'P: high' => 'P: high',
'P: normal' => 'P: normal',
'P: low' => 'P: low',
'P: lowest' => 'P: lowest',
'R: implemented' => NULL,
'R: fixed' => NULL,
'R: invalid' => 'invalid',
'R: wontfix' => 'wontfix',
'R: duplicate' => 'duplicate',
'R: worksforme' => 'worksforme',
'R: notanissue' => 'notanissue',
'S: blocker' => 'S: blocker',
'S: critical' => 'S: critical',
'S: major' => 'S: major',
'S: normal' => 'S: normal',
'S: minor' => 'S: minor',
'S: trivial' => 'S: trivial',
);
// Do not convert tickets
$skip_tickets = false;
$ticket_limit = 0; // Max tickets per run if > 0
$ticket_offset = 0; // Start at this database entry if ticket_limit > 0; ignored if ticket_limit = 0
$ticket_try_preserve_numbers = false;
// Do not convert comments nor ticket history
$skip_comments = false;
$comments_offset = 0; // Start at this offset if limit > 0
$comments_limit = 0; // Max comments per run if > 0
// Do not add comments for attachments
$skip_attachments = false;
// Directory to contain attachments from Trac that need to be uploaded into GitHub
$attachment_dir = "./attachments";
// Add comments for attachments on Trac tickets >= attach_tracid_start and < attach_tracid_end
$attach_tracid_start = 0;
$attach_tracid_end = 0;
// Whether to add a "Migrated-From:" suffix to each issue's body
$add_migrated_suffix = false;
// URL of the this Trac instance; for Migrated-From and for getting the attachments
$trac_url = 'http://my.domain/trac/env';
// Paths to milestone/ticket cache if you run it multiple times with skip/offset
$save_tickets = './trac_tickets.list';
// Set this to true if you want to see the JSON output sent to GitHub
$verbose = false;
// Uncomment to refresh cache
// @unlink($save_tickets);
?>