2
1

generate-code-contributors.ts 8.3 KB

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