forked from youknowone/gitstat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal_settings.py
111 lines (102 loc) · 4.72 KB
/
local_settings.py
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
#-*- coding: utf-8 -*-
TITLE = 'Rust Language'
TEMPLATE_FILE = 'template.html'
INPUT_FILE = 'log.txt' # None for stdin
OUTPUT_FILE = None # None for stdout
AUTHOR_FILE = 'authors.txt'
COMMIT_DETAIL_COUNT = 1
COMMIT_ABSTRACT_COUNT = 5
COMMIT_LIST_COUNT = 20
REPO_URL = 'https://github.com/mozilla/rust/tree/master'
COMMIT_URL = 'http://github.com/mozilla/rust/commit/{commit}'
ACTIVE_DAYS = 30
GITHUB_RIBBON = 'https://github.com/youknowone/gitstat/tree/ruststat'
GOOGLE_ANALYTICS = 'UA-28402752-3', 'youknowone.org'
NAMES = {
'[email protected]': 'Elly Fong-Jones',
'[email protected]': 'Gareth Daniel Smith',
'[email protected]': 'Benjamin Jackman',
'[email protected]': 'Chris Pressey',
'[email protected]': 'Eric Holmes',
'[email protected]': 'Graydon Hoare',
'[email protected]': 'Simon Barber-Dueck',
'[email protected]': 'Rob Arnold',
'[email protected]': 'Ilyong Cho',
'[email protected]': u'Rafael Ávila de Espíndola',
'[email protected]': 'Or Brostovski',
'[email protected]': 'Kyeongwoon Lee',
'[email protected]': 'startling',
'[email protected]': u'Alex Rønne Petersen',
'[email protected]': 'Damien Schoof',
'[email protected]': 'Lennart Kudling',
}
ALIASES = {
'[email protected]': '[email protected]', # Make a@ as alias of b@
'graydon@4632428-PC.(none)': '[email protected]',
'espindola@dream.(none)': '[email protected]',
'tohava@tohava-laptop.(none)': '[email protected]',
'gareth@gareth-N56VM.(none)': '[email protected]',
'simon@server': '[email protected]',
'mmeyerho@andrew': '[email protected]',
'[email protected]': '[email protected]', # reverse?
'[email protected]': '[email protected]', # reverse?
'[email protected]': '[email protected]', #reverse?
}
GROUPS = [
{
'name': 'Bot',
'description': 'Robot is your friend', # -- sanxiyn
'filter': lambda author: author.name == 'bors',
'priority': 1,
},
{
'name': 'Mozilla',
'url': 'http://www.mozilla.org/',
'filter': lambda author: author.email.endswith('@mozilla.com') or author.email in ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]' ],
},
{
'name': 'Samsung Electronics',
'url': 'http://www.samsung.com/',
'filter': lambda author: '@samsung.com' in author.email or author.email in ['[email protected]', '[email protected]', '[email protected]', '[email protected]'],
},
{
'name': 'Korean Rust User Group',
'url': 'http://rust-kr.org/', # written in Rust!
'filter': lambda author: author.email in ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]'],
},
{
'name': 'Unidentified',
'description': 'Strange emails...',
'filter': lambda author: author.email.endswith('(none)') or author.email.endswith('debian.localdomain'),
},
]