forked from trustmaster/trac2github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
trac2github.cfg
79 lines (63 loc) · 2.14 KB
/
trac2github.cfg
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
<?php
/**
* @package trac2github
* @version 1.1
* @author Vladimir Sibirov
* @author Lukas Eder
* @copyright (c) Vladimir Sibirov 2011
* @license BSD
*/
$username = 'Put your github username here';
$password = 'Put your github password here';
$project = 'Organization or User name';
$repo = 'Organization or User name';
// All users must be valid github logins!
$users_list = array(
'TracUsermame' => 'GithubUsername',
'Trustmaster' => 'trustmaster',
'John.Done' => 'johndoe'
);
//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;
// 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
// Whether to add a "Migrated-From:" suffix to each issue's body
$add_migrated_suffix = false;
$trac_url = 'http://my.domain/trac/env';
// 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);
?>