From 33f015b267a7e466e8cf8934d3bb8f35e40f77f9 Mon Sep 17 00:00:00 2001 From: FonduemangVI <15520607+FonduemangVI@users.noreply.github.com> Date: Mon, 20 May 2024 22:04:32 +1000 Subject: [PATCH] Update back to 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 d020229bf..a30408e5a 100644 --- a/.github/scripts/update-contributors.js +++ b/.github/scripts/update-contributors.js @@ -26,8 +26,12 @@ function fetchPage() { // 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 = ` -