diff options
-rw-r--r-- | CREDITS.md | 20 | ||||
-rwxr-xr-x | scripts/generate-code-contributors.ts | 10 |
2 files changed, 24 insertions, 6 deletions
diff --git a/CREDITS.md b/CREDITS.md index ad5125227..509f9800d 100644 --- a/CREDITS.md +++ b/CREDITS.md | |||
@@ -6,25 +6,27 @@ | |||
6 | * [Nutomic](https://github.com/Nutomic) | 6 | * [Nutomic](https://github.com/Nutomic) |
7 | * [Jorropo](https://github.com/Jorropo) | 7 | * [Jorropo](https://github.com/Jorropo) |
8 | * [BO41](https://github.com/BO41) | 8 | * [BO41](https://github.com/BO41) |
9 | * [joshmorel](https://github.com/joshmorel) | ||
10 | * [buoyantair](https://github.com/buoyantair) | ||
9 | * [bnjbvr](https://github.com/bnjbvr) | 11 | * [bnjbvr](https://github.com/bnjbvr) |
10 | * [DavidLibeau](https://github.com/DavidLibeau) | 12 | * [DavidLibeau](https://github.com/DavidLibeau) |
11 | * [jankeromnes](https://github.com/jankeromnes) | 13 | * [jankeromnes](https://github.com/jankeromnes) |
12 | * [joshmorel](https://github.com/joshmorel) | ||
13 | * [JohnXLivingston](https://github.com/JohnXLivingston) | 14 | * [JohnXLivingston](https://github.com/JohnXLivingston) |
14 | * [kaiyou](https://github.com/kaiyou) | 15 | * [kaiyou](https://github.com/kaiyou) |
16 | * [McFlat](https://github.com/McFlat) | ||
15 | * [DimitriGilbert](https://github.com/DimitriGilbert) | 17 | * [DimitriGilbert](https://github.com/DimitriGilbert) |
16 | * [floSoX](https://github.com/floSoX) | 18 | * [floSoX](https://github.com/floSoX) |
17 | * [Green-Star](https://github.com/Green-Star) | 19 | * [Green-Star](https://github.com/Green-Star) |
20 | * [thomaskuntzz](https://github.com/thomaskuntzz) | ||
18 | * [rezonant](https://github.com/rezonant) | 21 | * [rezonant](https://github.com/rezonant) |
19 | * [ldidry](https://github.com/ldidry) | 22 | * [ldidry](https://github.com/ldidry) |
20 | * [McFlat](https://github.com/McFlat) | ||
21 | * [okhin](https://github.com/okhin) | 23 | * [okhin](https://github.com/okhin) |
22 | * [daftaupe](https://github.com/daftaupe) | 24 | * [daftaupe](https://github.com/daftaupe) |
23 | * [thomaskuntzz](https://github.com/thomaskuntzz) | ||
24 | * [LecygneNoir](https://github.com/LecygneNoir) | 25 | * [LecygneNoir](https://github.com/LecygneNoir) |
25 | * [fflorent](https://github.com/fflorent) | 26 | * [fflorent](https://github.com/fflorent) |
26 | * [dedesite](https://github.com/dedesite) | 27 | * [dedesite](https://github.com/dedesite) |
27 | * [Nautigsam](https://github.com/Nautigsam) | 28 | * [Nautigsam](https://github.com/Nautigsam) |
29 | * [scanlime](https://github.com/scanlime) | ||
28 | * [tcitworld](https://github.com/tcitworld) | 30 | * [tcitworld](https://github.com/tcitworld) |
29 | * [am97](https://github.com/am97) | 31 | * [am97](https://github.com/am97) |
30 | * [dadall](https://github.com/dadall) | 32 | * [dadall](https://github.com/dadall) |
@@ -35,7 +37,6 @@ | |||
35 | * [jocelynj](https://github.com/jocelynj) | 37 | * [jocelynj](https://github.com/jocelynj) |
36 | * [lucas-dclrcq](https://github.com/lucas-dclrcq) | 38 | * [lucas-dclrcq](https://github.com/lucas-dclrcq) |
37 | * [lucaspontoexe](https://github.com/lucaspontoexe) | 39 | * [lucaspontoexe](https://github.com/lucaspontoexe) |
38 | * [scanlime](https://github.com/scanlime) | ||
39 | * [flyingrub](https://github.com/flyingrub) | 40 | * [flyingrub](https://github.com/flyingrub) |
40 | * [SerCom-KC](https://github.com/SerCom-KC) | 41 | * [SerCom-KC](https://github.com/SerCom-KC) |
41 | * [valvin1](https://github.com/valvin1) | 42 | * [valvin1](https://github.com/valvin1) |
@@ -43,6 +44,7 @@ | |||
43 | * [sticmac](https://github.com/sticmac) | 44 | * [sticmac](https://github.com/sticmac) |
44 | * [barbeque](https://github.com/barbeque) | 45 | * [barbeque](https://github.com/barbeque) |
45 | * [luzpaz](https://github.com/luzpaz) | 46 | * [luzpaz](https://github.com/luzpaz) |
47 | * [acid-chicken](https://github.com/acid-chicken) | ||
46 | * [louistio](https://github.com/louistio) | 48 | * [louistio](https://github.com/louistio) |
47 | * [qsypoq](https://github.com/qsypoq) | 49 | * [qsypoq](https://github.com/qsypoq) |
48 | * [daker](https://github.com/daker) | 50 | * [daker](https://github.com/daker) |
@@ -65,6 +67,7 @@ | |||
65 | * [grizio](https://github.com/grizio) | 67 | * [grizio](https://github.com/grizio) |
66 | * [Glandos](https://github.com/Glandos) | 68 | * [Glandos](https://github.com/Glandos) |
67 | * [lanodan](https://github.com/lanodan) | 69 | * [lanodan](https://github.com/lanodan) |
70 | * [HesioZ](https://github.com/HesioZ) | ||
68 | * [jagannathBhat](https://github.com/jagannathBhat) | 71 | * [jagannathBhat](https://github.com/jagannathBhat) |
69 | * [jlebras](https://github.com/jlebras) | 72 | * [jlebras](https://github.com/jlebras) |
70 | * [alcalyn](https://github.com/alcalyn) | 73 | * [alcalyn](https://github.com/alcalyn) |
@@ -73,7 +76,9 @@ | |||
73 | * [zapashcanon](https://github.com/zapashcanon) | 76 | * [zapashcanon](https://github.com/zapashcanon) |
74 | * [mart-e](https://github.com/mart-e) | 77 | * [mart-e](https://github.com/mart-e) |
75 | * [0mp](https://github.com/0mp) | 78 | * [0mp](https://github.com/0mp) |
79 | * [mkoppmann](https://github.com/mkoppmann) | ||
76 | * [1000i100](https://github.com/1000i100) | 80 | * [1000i100](https://github.com/1000i100) |
81 | * [roipoussiere](https://github.com/roipoussiere) | ||
77 | * [zeograd](https://github.com/zeograd) | 82 | * [zeograd](https://github.com/zeograd) |
78 | * [PhieF](https://github.com/PhieF) | 83 | * [PhieF](https://github.com/PhieF) |
79 | * [Quenty31](https://github.com/Quenty31) | 84 | * [Quenty31](https://github.com/Quenty31) |
@@ -125,11 +130,14 @@ | |||
125 | * [h3zjp](https://trad.framasoft.org/zanata/profile/view/h3zjp) | 130 | * [h3zjp](https://trad.framasoft.org/zanata/profile/view/h3zjp) |
126 | * [jfblanc](https://trad.framasoft.org/zanata/profile/view/jfblanc) | 131 | * [jfblanc](https://trad.framasoft.org/zanata/profile/view/jfblanc) |
127 | * [jhertel](https://trad.framasoft.org/zanata/profile/view/jhertel) | 132 | * [jhertel](https://trad.framasoft.org/zanata/profile/view/jhertel) |
133 | * [jmf](https://trad.framasoft.org/zanata/profile/view/jmf) | ||
128 | * [jorropo](https://trad.framasoft.org/zanata/profile/view/jorropo) | 134 | * [jorropo](https://trad.framasoft.org/zanata/profile/view/jorropo) |
135 | * [kairozen](https://trad.framasoft.org/zanata/profile/view/kairozen) | ||
129 | * [kedemferre](https://trad.framasoft.org/zanata/profile/view/kedemferre) | 136 | * [kedemferre](https://trad.framasoft.org/zanata/profile/view/kedemferre) |
130 | * [kousha](https://trad.framasoft.org/zanata/profile/view/kousha) | 137 | * [kousha](https://trad.framasoft.org/zanata/profile/view/kousha) |
131 | * [krkk](https://trad.framasoft.org/zanata/profile/view/krkk) | 138 | * [krkk](https://trad.framasoft.org/zanata/profile/view/krkk) |
132 | * [landrok](https://trad.framasoft.org/zanata/profile/view/landrok) | 139 | * [landrok](https://trad.framasoft.org/zanata/profile/view/landrok) |
140 | * [leeroyepold48](https://trad.framasoft.org/zanata/profile/view/leeroyepold48) | ||
133 | * [m4sk1n](https://trad.framasoft.org/zanata/profile/view/m4sk1n) | 141 | * [m4sk1n](https://trad.framasoft.org/zanata/profile/view/m4sk1n) |
134 | * [matograine](https://trad.framasoft.org/zanata/profile/view/matograine) | 142 | * [matograine](https://trad.framasoft.org/zanata/profile/view/matograine) |
135 | * [medow](https://trad.framasoft.org/zanata/profile/view/medow) | 143 | * [medow](https://trad.framasoft.org/zanata/profile/view/medow) |
@@ -167,6 +175,10 @@ | |||
167 | * [xinayder](https://trad.framasoft.org/zanata/profile/view/xinayder) | 175 | * [xinayder](https://trad.framasoft.org/zanata/profile/view/xinayder) |
168 | * [xosem](https://trad.framasoft.org/zanata/profile/view/xosem) | 176 | * [xosem](https://trad.framasoft.org/zanata/profile/view/xosem) |
169 | * [zveryok](https://trad.framasoft.org/zanata/profile/view/zveryok) | 177 | * [zveryok](https://trad.framasoft.org/zanata/profile/view/zveryok) |
178 | * [aditoo](https://trad.framasoft.org/zanata/profile/view/aditoo) | ||
179 | * [autom](https://trad.framasoft.org/zanata/profile/view/autom) | ||
180 | * [curupira](https://trad.framasoft.org/zanata/profile/view/curupira) | ||
181 | * [leeroyepold48](https://trad.framasoft.org/zanata/profile/view/leeroyepold48) | ||
170 | 182 | ||
171 | 183 | ||
172 | # Design | 184 | # Design |
diff --git a/scripts/generate-code-contributors.ts b/scripts/generate-code-contributors.ts index 3d37372d1..9824bc2f5 100755 --- a/scripts/generate-code-contributors.ts +++ b/scripts/generate-code-contributors.ts | |||
@@ -70,11 +70,17 @@ async function fetchGithub (url: string) { | |||
70 | 70 | ||
71 | async function fetchZanata (zanataUsername: string, zanataPassword: string) { | 71 | async function fetchZanata (zanataUsername: string, zanataPassword: string) { |
72 | const today = new Date().toISOString().split('T')[0] | 72 | const today = new Date().toISOString().split('T')[0] |
73 | const url = `https://trad.framasoft.org/zanata/rest/project/peertube/version/develop/contributors/2018-01-01..${today}` | 73 | const year2018 = `https://trad.framasoft.org/zanata/rest/project/peertube/version/develop/contributors/2018-01-01..2019-01-01` |
74 | const year2019 = `https://trad.framasoft.org/zanata/rest/project/peertube/version/develop/contributors/2019-01-01..${today}` | ||
74 | 75 | ||
75 | const headers = { | 76 | const headers = { |
76 | 'X-Auth-User': zanataUsername, | 77 | 'X-Auth-User': zanataUsername, |
77 | 'X-Auth-Token': zanataPassword | 78 | 'X-Auth-Token': zanataPassword |
78 | } | 79 | } |
79 | return get(url, headers) | 80 | const [ results2018, results2019 ] = await Promise.all([ |
81 | get(year2018, headers), | ||
82 | get(year2019, headers) | ||
83 | ]) | ||
84 | |||
85 | return results2018.concat(results2019) | ||
80 | } | 86 | } |