aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/generate-code-contributors.ts
blob: 408bbec5d7a764578c603813de61822555b0ddc8 (plain) (blame)
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
import { CLICommand } from '@peertube/peertube-server-commands'

run()
  .then(() => process.exit(0))
  .catch(err => {
    console.error(err)
    process.exit(-1)
  })

async function run () {
  const excludeList = getContributorsExcludeList()

  {
    let contributors = await getGitContributors()
    contributors = contributors.concat(getZanataContributors())
    contributors = contributors.filter(c => !excludeList.has(c.username))

    console.log('# Code & Translators contributors\n')
    for (const contributor of contributors) {
      console.log(` * ${contributor.username}`)
    }
  }

  {
    console.log('\n\n# Design\n')
    console.log(' * [Olivier Massain](https://dribbble.com/omassain)')
    console.log(' * [Marie-Cécile Godwin Paccard](https://mcgodwin.com/)')

    console.log('\n\n# Icons\n')
    console.log(' * [Feather Icons](https://feathericons.com) (MIT)')
    console.log(' * `playlist add`, `history`, `subscriptions`, `miscellaneous-services.svg`, `tip` by Material UI (Apache 2.0)')
    console.log(' * `support` by Chocobozzz (CC-BY)')
    console.log(' * `language` by Aaron Jin (CC-BY)')
    console.log(' * `video-language` by Rigel Kent (CC-BY)')
    console.log(' * `peertube-x` by Solen DP (CC-BY)')
    console.log(' * `flame` by Freepik (Flaticon License)')
    console.log(' * `local` by Larea (CC-BY)')
  }

  {
    console.log('\n\n# Contributors to our 2020 crowdfunding :heart:\n')
    console.log(
      `*We ran [a crowdfunding campaign](https://joinpeertube.org/roadmap) in 2020 to implement live streaming to the version ` +
      `3.0.0 of PeerTube. Thanks to everyone who pitched in and shared the news!*\n\n`
    )
  }

  {
    console.log('\n\n# Contributors to our 2018 crowdfunding :heart:')
    console.log(
      `\n*We ran [a crowdfunding campaign](https://www.kisskissbankbank.com/en/projects/peertube-a-free-and-federated-video-platform) ` +
      `in 2018 to pave the road to the version 1.0.0 of PeerTube, with 1,379 backers. ` +
      `Thanks to everyone who pitched in and shared the news!*\n\n`
    )
  }
}

async function getGitContributors () {
  const output = await CLICommand.exec(`git --no-pager shortlog -sn < /dev/tty | sed 's/^\\s\\+[0-9]\\+\\s\\+//g'`)

  return output.split('\n')
               .filter(l => !!l)
               .map(l => ({ username: l }))
}

// Zanata is dead, don't loose the contributors name
function getZanataContributors () {
  return [
    { username: 'abdhessuk', name: 'Abd Hessuk' },
    { username: 'abidin24', name: 'abidin toumi' },
    { username: 'aditoo', name: 'Lorem Ipsum' },
    { username: 'alice', name: 'Alice' },
    { username: 'anastasia', name: 'Anastasia' },
    { username: 'autom', name: 'Filip Bengtsson' },
    { username: 'balaji', name: 'Balaji' },
    { username: 'bristow', name: 'Cédric F.' },
    { username: 'butterflyoffire', name: 'ButterflyOfFire' },
    { username: 'chocobozzz', name: 'Chocobozzz' },
    { username: 'claichou', name: 'Claire Mohin' },
    { username: 'degrange', name: 'Degrange Mathieu' },
    { username: 'dibek', name: 'Giuseppe Di Bella' },
    { username: 'edu', name: 'eduardo' },
    { username: 'ehsaan', name: 'ehsaan' },
    { username: 'esoforte', name: 'Ondřej Kotas' },
    { username: 'fkohrt', name: 'Florian Kohrt' },
    { username: 'giqtaqisi', name: 'Ian Townsend' },
    { username: 'goofy', name: 'goofy' },
    { username: 'gorkaazk', name: 'Gorka Azkarate Zubiaur' },
    { username: 'gwendald', name: 'GwendalD' },
    { username: 'h3zjp', name: 'h3zjp' },
    { username: 'jfblanc', name: 'Joan Francés Blanc' },
    { username: 'jhertel', name: 'Jean Hertel' },
    { username: 'jmf', name: 'Jan-Michael Franz' },
    { username: 'jorropo', name: 'Jorropo' },
    { username: 'kairozen', name: 'Geoffrey Baudelet' },
    { username: 'kedemferre', name: 'Kédem Ferré' },
    { username: 'kousha', name: 'Kousha Zanjani' },
    { username: 'krkk', name: 'Karol Kosek' },
    { username: 'landrok', name: 'Landrok' },
    { username: 'leeroyepold48', name: 'Leeroy Epold' },
    { username: 'm4sk1n', name: 'marcin mikołajczak' },
    { username: 'matograine', name: 'tom ngr' },
    { username: 'medow', name: 'Mahir Ahmed' },
    { username: 'mhu', name: 'Max Hübner' },
    { username: 'midgard', name: 'Midgard' },
    { username: 'nbrucy', name: 'N. B.' },
    { username: 'nitai', name: 'nitai bezerra' },
    { username: 'noncommutativegeo', name: 'Andrea Panontin' },
    { username: 'nopsidy', name: 'McFlat' },
    { username: 'nvivant', name: 'Nicolas Vivant' },
    { username: 'osoitz', name: 'Osoitz' },
    { username: 'outloudvi', name: 'Outvi V' },
    { username: 'quentin', name: 'Quentí' },
    { username: 'quentind', name: 'Quentin Dupont' },
    { username: 'rafaelff', name: 'Rafael Fontenelle' },
    { username: 'rigelk', name: 'Rigel Kent' },
    { username: 's8321414', name: 'Jeff Huang' },
    { username: 'sato_ss', name: 'Satoshi Shirosaka' },
    { username: 'sercom_kc', name: 'SerCom_KC' },
    { username: 'severo', name: 'Sylvain Lesage' },
    { username: 'silkevicious', name: 'Sylke Vicious' },
    { username: 'sosha', name: 'Sosha' },
    { username: 'spla', name: 'spla' },
    { username: 'strubbl', name: 'Sven' },
    { username: 'swedneck', name: 'Tim Stahel' },
    { username: 'tagomago', name: 'Tagomago' },
    { username: 'talone', name: 'TitiAlone' },
    { username: 'thibaultmartin', name: 'Thibault Martin' },
    { username: 'tirifto', name: 'Tirifto' },
    { username: 'tuxayo', name: 'Victor Grousset/tuxayo' },
    { username: 'unextro', name: 'Ondřej Pokorný' },
    { username: 'unzarida', name: 'unzarida' },
    { username: 'vincent', name: 'Vincent Laporte' },
    { username: 'wanhua', name: 'wanhua' },
    { username: 'xinayder', name: 'Alexandre' },
    { username: 'xosem', name: 'Xosé M.' },
    { username: 'zveryok', name: 'Nikitin Stanislav' },
    { username: '6543', name: '6543' },
    { username: 'aasami', name: 'Miroslav Ďurian' },
    { username: 'alidemirtas', name: 'Ali Demirtas' },
    { username: 'alpha', name: 'Alpha' },
    { username: 'ariasuni', name: 'Mélanie Chauvel' },
    { username: 'bfonton', name: 'Baptiste Fonton' },
    { username: 'c0dr', name: 'c0dr lnx' },
    { username: 'canony', name: 'canony' },
    { username: 'cat', name: 'Cat' },
    { username: 'clerie', name: 'Clemens Riese' },
    { username: 'curupira', name: 'Curupira' },
    { username: 'dhsets', name: 'djsets' },
    { username: 'digitalkiller', name: 'Digital Killer' },
    { username: 'dwsage', name: 'd.w. sage' },
    { username: 'flauta', name: 'Andrea Primiani' },
    { username: 'frankstrater', name: 'Frank Sträter' },
    { username: 'gillux', name: 'gillux' },
    { username: 'gunchleoc', name: 'GunChleoc' },
    { username: 'jaidedtd', name: 'Jenga Phoenix' },
    { username: 'joss2lyon', name: 'Josselin' },
    { username: 'kekkotranslates', name: 'Francesco' },
    { username: 'kingu', name: 'Allan Nordhøy' },
    { username: 'kittybecca', name: 'Rivka bat Tsvi' },
    { username: 'knuxify', name: 'knuxify' },
    { username: 'lapor', name: 'Kristijan Tkalec' },
    { username: 'laufor', name: 'Lau For' },
    { username: 'lstamellos', name: 'Loukas Stamellos' },
    { username: 'lw1', name: 'Lukas Winkler' },
    { username: 'mablr', name: 'Mablr' },
    { username: 'marcinmalecki', name: 'Marcin Małecki' },
    { username: 'mayana', name: 'Mayana' },
    { username: 'mikeorlov', name: 'Michael Orlov' },
    { username: 'nin', name: 'nz' },
    { username: 'norbipeti', name: 'NorbiPeti' },
    { username: 'ppnplus', name: 'Phongpanot Phairat' },
    { username: 'predatorix', name: 'Predatorix' },
    { username: 'robin', name: 'Robin Lahtinen' },
    { username: 'rond', name: 'rondnelly nunes' },
    { username: 'secreet', name: 'Secreet' },
    { username: 'sftblw', name: 'sftblw' },
    { username: 'sporiff', name: 'Ciarán Ainsworth' },
    { username: 'tekuteku', name: 'tekuteku' },
    { username: 'thecatjustmeow', name: 'Nguyen Huynh Hung' },
    { username: 'tmota', name: 'Tiago Mota' },
    { username: 'uranix', name: 'Michal Mauser' },
    { username: 'wakutiteo', name: 'Markel' },
    { username: 'wonderingdane', name: 'Nicolai Ireneo-Larsen' },
    { username: 'zeynepeliacik', name: 'Zeynep Can' }
  ]
}

function getContributorsExcludeList () {
  return new Set([
    'Bigard Florian',
    'chocobozzz',
    'Rigel',

    // Requested by the contributor
    'Marcel Cramm',
    'Chris Sakura 佐倉くりす on Youtube',
    'Chris Sakura 佐倉くりす on Youtube - 日本語は第二言語やけ、間違っとったら思いっきり叩いてくださいw つたない日本語ばっかりやけど頑張りまーす♪',
    'chris@famichiki.tube'
  ])
}