2
1

generate-code-contributors.ts 8.7 KB

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