-
Notifications
You must be signed in to change notification settings - Fork 3
/
fetch.js
37 lines (35 loc) · 1.05 KB
/
fetch.js
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
const { fetchAll } = require('volunteer-contributions-fetch');
const config = {
outputFile: `${__dirname}/_data/contributions.json`,
communityPortal: {
enabled: true,
baseUrl: 'https://community.mozilla.org/people',
username: 'mkohler',
},
discourse: {
enabled: true,
baseUrl: 'https://discourse.mozilla.org',
username: 'mkohler',
keepDeletedPost: true,
},
mediaWiki: {
enabled: true,
baseUrl: 'https://wiki.mozilla.org/api.php?action=feedcontributions',
username: 'michaelkohler',
stopDate: '2012-05-01',
},
github: {
enabled: true,
allowPrivate: true, // needed due to using fine-grained PAT
username: 'MichaelKohler',
stopDate: '2008-01-01',
filter: 'mozilla|common-voice|reps|remo|sc-scripts|webmaker|firefox|activate|surprisera|fxos|foxfooding|arewetenyet|asknot|community_dashboard_participation|appday|matrix',
},
bugzilla: {
enabled: true,
baseUrl: 'https://bugzilla.mozilla.org',
username: '[email protected]',
stopDate: '2008-01-01',
},
};
fetchAll(config);