diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-26 09:49:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-26 09:49:53 +0200 |
commit | 053ed7f5e638621ea474c77e0e244df0b3682889 (patch) | |
tree | 60d8fe184bbd80d7ae531f9a3b70f07c4c9925e1 /scripts | |
parent | 22e7ffc7810798a0aa34145f2e06e62d6004b253 (diff) | |
download | PeerTube-053ed7f5e638621ea474c77e0e244df0b3682889.tar.gz PeerTube-053ed7f5e638621ea474c77e0e244df0b3682889.tar.zst PeerTube-053ed7f5e638621ea474c77e0e244df0b3682889.zip |
Update code contributors
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generate-code-contributors.ts | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/scripts/generate-code-contributors.ts b/scripts/generate-code-contributors.ts index 5357daf04..2fd0ecdf3 100755 --- a/scripts/generate-code-contributors.ts +++ b/scripts/generate-code-contributors.ts | |||
@@ -8,12 +8,12 @@ run() | |||
8 | }) | 8 | }) |
9 | 9 | ||
10 | async function run () { | 10 | async function run () { |
11 | const blacklist = getContributorsBlacklist() | 11 | const excludeList = getContributorsExcludeList() |
12 | 12 | ||
13 | { | 13 | { |
14 | let contributors = await getGitContributors() | 14 | let contributors = await getGitContributors() |
15 | contributors = contributors.concat(getZanataContributors()) | 15 | contributors = contributors.concat(getZanataContributors()) |
16 | contributors = contributors.filter(c => blacklist[c.username] !== true) | 16 | contributors = contributors.filter(c => !excludeList.has(c.username)) |
17 | 17 | ||
18 | console.log('# Code & Translators contributors\n') | 18 | console.log('# Code & Translators contributors\n') |
19 | for (const contributor of contributors) { | 19 | for (const contributor of contributors) { |
@@ -186,13 +186,16 @@ function getZanataContributors () { | |||
186 | ] | 186 | ] |
187 | } | 187 | } |
188 | 188 | ||
189 | function getContributorsBlacklist () { | 189 | function getContributorsExcludeList () { |
190 | return { | 190 | return new Set([ |
191 | 'Bigard Florian': true, | 191 | 'Bigard Florian', |
192 | 'chocobozzz': true, | 192 | 'chocobozzz', |
193 | 'Rigel': true, | 193 | 'Rigel', |
194 | 194 | ||
195 | // Requested by the contributor | 195 | // Requested by the contributor |
196 | 'Marcel Cramm': true | 196 | 'Marcel Cramm', |
197 | } | 197 | 'Chris Sakura 佐倉くりす on Youtube', |
198 | 'Chris Sakura 佐倉くりす on Youtube - 日本語は第二言語やけ、間違っとったら思いっきり叩いてくださいw つたない日本語ばっかりやけど頑張りまーす♪', | ||
199 | 'chris@famichiki.tube' | ||
200 | ]) | ||
198 | } | 201 | } |