diff --git a/scripts/update-contributors.js b/scripts/update-contributors.js old mode 100755 new mode 100644 index a6617a9e4d..6bd4c35f0c --- a/scripts/update-contributors.js +++ b/scripts/update-contributors.js @@ -183,13 +183,14 @@ async function readReadme() { * @param {Array} contributors Array of contributor objects from GitHub API * @returns {string} HTML for contributors section */ +const EXCLUDED_LOGIN_SUBSTRINGS = ['[bot]', 'R00-B0T']; +const EXCLUDED_LOGIN_EXACTS = ['cursor', 'roomote']; + function formatContributorsSection(contributors) { // Filter out GitHub Actions bot, cursor, and roomote - const filteredContributors = contributors.filter((c) => - !c.login.includes("[bot]") && - !c.login.includes("R00-B0T") && - c.login !== "cursor" && - c.login !== "roomote" + const filteredContributors = contributors.filter((c) => + !EXCLUDED_LOGIN_SUBSTRINGS.some(sub => c.login.includes(sub)) && + !EXCLUDED_LOGIN_EXACTS.includes(c.login) ) // Start building with Markdown table format