From f40da2b3d25b8cb227b29ed241619f12b1c4904f Mon Sep 17 00:00:00 2001 From: FonduemangVI <15520607+FonduemangVI@users.noreply.github.com> Date: Wed, 15 May 2024 18:55:14 +1000 Subject: [PATCH] update colours --- .github/scripts/update-contributors.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/scripts/update-contributors.js b/.github/scripts/update-contributors.js index 54543cc3d..070404025 100644 --- a/.github/scripts/update-contributors.js +++ b/.github/scripts/update-contributors.js @@ -22,12 +22,16 @@ function fetchPage() { return; } - response.data.forEach((user) => { + response.data.forEach((user, i) => { // Exclude bots and actions-user if (user.type === 'Bot' || user.login.toLowerCase().includes('bot') || user.login === 'actions-user' || user.login === 'mynameisbogdan') return; + // Determine row index for background color + const rowIndex = Math.floor(index / 5); + const bgColor = (rowIndex % 2 === 0) ? '#1e2129' : '#303850'; + const userHtml = ` -
+
${user.login}
${user.login}