From b9bf964d86f64236755ab92402bc315ed17258bc Mon Sep 17 00:00:00 2001 From: gltchitm <42951031+gltchitm@users.noreply.github.com> Date: Fri, 21 May 2021 16:36:24 -0400 Subject: [PATCH] site: properly link bot contributors --- site/scripts/get-contributors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/scripts/get-contributors.js b/site/scripts/get-contributors.js index cb1facb874..53043c3756 100644 --- a/site/scripts/get-contributors.js +++ b/site/scripts/get-contributors.js @@ -45,7 +45,7 @@ async function main() { // TODO: Optimizing the static/contributors.jpg image should probably get automated as well console.log('remember to additionally optimize the resulting /static/contributors.jpg image file via e.g. https://squoosh.app '); - const str = `[\n\t${authors.map(a => `'${a.login}'`).join(',\n\t')}\n]`; + const str = `[\n\t${authors.map(a => `'${a.login.replace('[bot]', '')}'`).join(',\n\t')}\n]`; fs.writeFileSync(`../src/routes/_contributors.js`, `export default ${str};`); }