forked from trustmaster/trac2github
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php.sample
60 lines (46 loc) · 1.86 KB
/
config.php.sample
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
<?php
// Edit configuration below
$username = $default_username = 'Put your github username here';
$password = $default_password = 'Put your github password here';
$project = 'Organization or User name';
$repo = 'Repository name';
// All users must be valid github logins!
$users_list = array(
'TracUsermame' => 'GithubUsername',
'Trustmaster' => 'trustmaster',
'John.Done' => 'johndoe'
);
// map of github user => password to create issues and comments as in trac. Leave empty to use github default user specified above from $default_username and $default_password var
$github_users = array(
// 'github username' => 'github password',
);
// array with svn revision as keys and related git revision as value
$convert_revision = array();
// alternative to $convert_revision: php file with $covert_revision array (useful because it can be a very big)
$convert_revision_file = "/path/to/file/revision-svn2git.php"
$mysqlhost_trac = 'Trac MySQL host';
$mysqluser_trac = 'Trac MySQL user';
$mysqlpassword_trac = 'Trac MySQL password';
$mysqldb_trac = 'Trac MySQL database name';
// Do not convert milestones at this run
$skip_milestones = false;
// Do not convert labels at this run
$skip_labels = false;
// Do not convert tickets
$skip_tickets = false;
$ticket_offset = 0; // Start at this offset if limit > 0
$ticket_limit = 0; // Max tickets per run if > 0
// Do not convert comments
$skip_comments = true;
$comments_offset = 0; // Start at this offset if limit > 0
$comments_limit = 0; // Max comments per run if > 0
// Paths to milestone/ticket cache if you run it multiple times with skip/offset
$save_milestones = '/tmp/trac_milestones.list';
$save_tickets = '/tmp/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_milestones);
// @unlink($save_labels);
// @unlink($save_tickets);
?>