]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - scripts/generate-code-contributors.ts
Introduce accounts command
[github/Chocobozzz/PeerTube.git] / scripts / generate-code-contributors.ts
CommitLineData
2aaa1a3f
C
1import { registerTSPaths } from '../server/helpers/register-ts-paths'
2registerTSPaths()
3
329619b3 4import { CLICommand } from '@shared/extra-utils'
92d83c6a
C
5
6run()
7 .then(() => process.exit(0))
8 .catch(err => {
9 console.error(err)
10 process.exit(-1)
11 })
12
13async function run () {
41ee8342 14 const blacklist = getContributorsBlacklist()
92d83c6a 15
63703d8c
RK
16 {
17 let contributors = await getGitContributors()
18 contributors = contributors.concat(getZanataContributors())
19 contributors = contributors.filter(c => blacklist[c.username] !== true)
92d83c6a 20
63703d8c
RK
21 console.log('# Code & Translators contributors\n')
22 for (const contributor of contributors) {
23 console.log(` * ${contributor.username}`)
24 }
92d83c6a
C
25 }
26
27 {
28 console.log('\n\n# Design\n')
41ee8342 29 console.log(' * [Olivier Massain](https://dribbble.com/omassain)')
63703d8c 30 console.log(' * [Marie-Cécile Godwin Paccard](https://mcgodwin.com/)')
19041ac8
C
31
32 console.log('\n\n# Icons\n')
e3234c3b 33 console.log(' * [Feather Icons](https://feathericons.com) (MIT)')
241c1a55 34 console.log(' * `playlist add`, `history`, `subscriptions`, `miscellaneous-services.svg` by Material UI (Apache 2.0)')
bfbc5966
RK
35 console.log(' * `support` by Chocobozzz (CC-BY)')
36 console.log(' * `language` by Aaron Jin (CC-BY)')
37 console.log(' * `video-language` by Rigel Kent (CC-BY)')
345b4a22 38 console.log(' * `peertube-x` by Solen DP (CC-BY)')
5ac593b7 39 console.log(' * `flame` by Freepik (Flaticon License)')
5351a058 40 console.log(' * `local` by Larea (CC-BY)')
92d83c6a 41 }
63703d8c
RK
42
43 {
12394e7e
C
44 console.log('\n\n# Contributors to our 2020 crowdfunding :heart:\n')
45 console.log(
46 `*We ran [a crowdfunding campaign](https://joinpeertube.org/roadmap) in 2020 to implement live streaming to the version ` +
47 `3.0.0 of PeerTube. Thanks to everyone who pitched in and shared the news!*\n\n`
48 )
12394e7e
C
49 }
50
51 {
52 console.log('\n\n# Contributors to our 2018 crowdfunding :heart:')
53 console.log(
54 `\n*We ran [a crowdfunding campaign](https://www.kisskissbankbank.com/en/projects/peertube-a-free-and-federated-video-platform) ` +
55 `in 2018 to pave the road to the version 1.0.0 of PeerTube, with 1,379 backers. ` +
56 `Thanks to everyone who pitched in and shared the news!*\n\n`
57 )
63703d8c 58 }
92d83c6a
C
59}
60
41ee8342 61async function getGitContributors () {
329619b3 62 const output = await CLICommand.exec(`git --no-pager shortlog -sn < /dev/tty | sed 's/^\\s\\+[0-9]\\+\\s\\+//g'`)
92d83c6a 63
41ee8342
C
64 return output.split('\n')
65 .filter(l => !!l)
66 .map(l => ({ username: l }))
92d83c6a
C
67}
68
41ee8342
C
69// Zanata is dead, don't loose the contributors name
70function getZanataContributors () {
63703d8c
RK
71 return [
72 { username: 'abdhessuk', name: 'Abd Hessuk' },
73 { username: 'abidin24', name: 'abidin toumi' },
74 { username: 'aditoo', name: 'Lorem Ipsum' },
75 { username: 'alice', name: 'Alice' },
76 { username: 'anastasia', name: 'Anastasia' },
77 { username: 'autom', name: 'Filip Bengtsson' },
78 { username: 'balaji', name: 'Balaji' },
79 { username: 'bristow', name: 'Cédric F.' },
80 { username: 'butterflyoffire', name: 'ButterflyOfFire' },
81 { username: 'chocobozzz', name: 'Chocobozzz' },
82 { username: 'claichou', name: 'Claire Mohin' },
83 { username: 'degrange', name: 'Degrange Mathieu' },
84 { username: 'dibek', name: 'Giuseppe Di Bella' },
85 { username: 'edu', name: 'eduardo' },
86 { username: 'ehsaan', name: 'ehsaan' },
87 { username: 'esoforte', name: 'Ondřej Kotas' },
88 { username: 'fkohrt', name: 'Florian Kohrt' },
89 { username: 'giqtaqisi', name: 'Ian Townsend' },
90 { username: 'goofy', name: 'goofy' },
91 { username: 'gorkaazk', name: 'Gorka Azkarate Zubiaur' },
92 { username: 'gwendald', name: 'GwendalD' },
93 { username: 'h3zjp', name: 'h3zjp' },
94 { username: 'jfblanc', name: 'Joan Francés Blanc' },
95 { username: 'jhertel', name: 'Jean Hertel' },
96 { username: 'jmf', name: 'Jan-Michael Franz' },
97 { username: 'jorropo', name: 'Jorropo' },
98 { username: 'kairozen', name: 'Geoffrey Baudelet' },
99 { username: 'kedemferre', name: 'Kédem Ferré' },
100 { username: 'kousha', name: 'Kousha Zanjani' },
101 { username: 'krkk', name: 'Karol Kosek' },
102 { username: 'landrok', name: 'Landrok' },
103 { username: 'leeroyepold48', name: 'Leeroy Epold' },
104 { username: 'm4sk1n', name: 'marcin mikołajczak' },
105 { username: 'matograine', name: 'tom ngr' },
106 { username: 'medow', name: 'Mahir Ahmed' },
107 { username: 'mhu', name: 'Max Hübner' },
108 { username: 'midgard', name: 'Midgard' },
109 { username: 'nbrucy', name: 'N. B.' },
110 { username: 'nitai', name: 'nitai bezerra' },
111 { username: 'noncommutativegeo', name: 'Andrea Panontin' },
112 { username: 'nopsidy', name: 'McFlat' },
113 { username: 'nvivant', name: 'Nicolas Vivant' },
114 { username: 'osoitz', name: 'Osoitz' },
115 { username: 'outloudvi', name: 'Outvi V' },
116 { username: 'quentin', name: 'Quentí' },
117 { username: 'quentind', name: 'Quentin Dupont' },
118 { username: 'rafaelff', name: 'Rafael Fontenelle' },
119 { username: 'rigelk', name: 'Rigel Kent' },
120 { username: 's8321414', name: 'Jeff Huang' },
121 { username: 'sato_ss', name: 'Satoshi Shirosaka' },
122 { username: 'sercom_kc', name: 'SerCom_KC' },
123 { username: 'severo', name: 'Sylvain Lesage' },
124 { username: 'silkevicious', name: 'Sylke Vicious' },
125 { username: 'sosha', name: 'Sosha' },
126 { username: 'spla', name: 'spla' },
127 { username: 'strubbl', name: 'Sven' },
128 { username: 'swedneck', name: 'Tim Stahel' },
129 { username: 'tagomago', name: 'Tagomago' },
130 { username: 'talone', name: 'TitiAlone' },
131 { username: 'thibaultmartin', name: 'Thibault Martin' },
132 { username: 'tirifto', name: 'Tirifto' },
133 { username: 'tuxayo', name: 'Victor Grousset/tuxayo' },
134 { username: 'unextro', name: 'Ondřej Pokorný' },
135 { username: 'unzarida', name: 'unzarida' },
136 { username: 'vincent', name: 'Vincent Laporte' },
137 { username: 'wanhua', name: 'wanhua' },
138 { username: 'xinayder', name: 'Alexandre' },
139 { username: 'xosem', name: 'Xosé M.' },
140 { username: 'zveryok', name: 'Nikitin Stanislav' },
141 { username: '6543', name: '6543' },
142 { username: 'aasami', name: 'Miroslav Ďurian' },
143 { username: 'alidemirtas', name: 'Ali Demirtas' },
144 { username: 'alpha', name: 'Alpha' },
145 { username: 'ariasuni', name: 'Mélanie Chauvel' },
146 { username: 'bfonton', name: 'Baptiste Fonton' },
147 { username: 'c0dr', name: 'c0dr lnx' },
148 { username: 'canony', name: 'canony' },
149 { username: 'cat', name: 'Cat' },
150 { username: 'clerie', name: 'Clemens Riese' },
151 { username: 'curupira', name: 'Curupira' },
152 { username: 'dhsets', name: 'djsets' },
153 { username: 'digitalkiller', name: 'Digital Killer' },
154 { username: 'dwsage', name: 'd.w. sage' },
155 { username: 'flauta', name: 'Andrea Primiani' },
156 { username: 'frankstrater', name: 'Frank Sträter' },
157 { username: 'gillux', name: 'gillux' },
158 { username: 'gunchleoc', name: 'GunChleoc' },
159 { username: 'jaidedtd', name: 'Jenga Phoenix' },
160 { username: 'joss2lyon', name: 'Josselin' },
161 { username: 'kekkotranslates', name: 'Francesco' },
162 { username: 'kingu', name: 'Allan Nordhøy' },
163 { username: 'kittybecca', name: 'Rivka bat Tsvi' },
164 { username: 'knuxify', name: 'knuxify' },
165 { username: 'lapor', name: 'Kristijan Tkalec' },
166 { username: 'laufor', name: 'Lau For' },
167 { username: 'lstamellos', name: 'Loukas Stamellos' },
168 { username: 'lw1', name: 'Lukas Winkler' },
169 { username: 'mablr', name: 'Mablr' },
170 { username: 'marcinmalecki', name: 'Marcin Małecki' },
171 { username: 'mayana', name: 'Mayana' },
172 { username: 'mikeorlov', name: 'Michael Orlov' },
173 { username: 'nin', name: 'nz' },
174 { username: 'norbipeti', name: 'NorbiPeti' },
175 { username: 'ppnplus', name: 'Phongpanot Phairat' },
176 { username: 'predatorix', name: 'Predatorix' },
177 { username: 'robin', name: 'Robin Lahtinen' },
178 { username: 'rond', name: 'rondnelly nunes' },
179 { username: 'secreet', name: 'Secreet' },
180 { username: 'sftblw', name: 'sftblw' },
181 { username: 'sporiff', name: 'Ciarán Ainsworth' },
182 { username: 'tekuteku', name: 'tekuteku' },
183 { username: 'thecatjustmeow', name: 'Nguyen Huynh Hung' },
184 { username: 'tmota', name: 'Tiago Mota' },
185 { username: 'uranix', name: 'Michal Mauser' },
186 { username: 'wakutiteo', name: 'Markel' },
187 { username: 'wonderingdane', name: 'Nicolai Ireneo-Larsen' },
188 { username: 'zeynepeliacik', name: 'Zeynep Can' }
189 ]
41ee8342 190}
92d83c6a 191
41ee8342
C
192function getContributorsBlacklist () {
193 return {
c4a1811e 194 'Bigard Florian': true,
41ee8342
C
195 'chocobozzz': true,
196 'Rigel': true
92d83c6a 197 }
92d83c6a 198}