From 95497a72c7eeca3d7d0fa6532611e46c0524385e Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sat, 21 Jun 2025 13:08:35 -0400 Subject: [PATCH] Filter out additional bot and automated accounts from contributors list (#4983) * Filter out additional bot and automated accounts from contributors list * [Ellipsis] fix: exclude `cursor` and `roomote` logins in contributors section (#4984) Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --------- Co-authored-by: Cursor Agent Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --- scripts/update-contributors.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) mode change 100755 => 100644 scripts/update-contributors.js diff --git a/scripts/update-contributors.js b/scripts/update-contributors.js old mode 100755 new mode 100644 index 32fd645f68..6bd4c35f0c --- a/scripts/update-contributors.js +++ b/scripts/update-contributors.js @@ -183,9 +183,15 @@ 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 - const filteredContributors = contributors.filter((c) => !c.login.includes("[bot]") && !c.login.includes("R00-B0T")) + // Filter out GitHub Actions bot, cursor, and 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 let markdown = `${START_MARKER}