site: filter out bot contributors (#6352)

pull/6374/head
gltchitm 3 years ago committed by GitHub
parent fd9eea28f2
commit 7c21f919ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,6 +24,7 @@ async function main() {
}
const authors = contributors
.filter(({ login }) => !login.includes('[bot]'))
.sort((a, b) => b.contributions - a.contributions);
const sprite = new Jimp(SIZE * authors.length, SIZE);
@ -50,4 +51,4 @@ async function main() {
fs.writeFileSync(`../src/routes/_contributors.js`, `export default ${str};`);
}
main();
main();

Loading…
Cancel
Save