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 <cursoragent@cursor.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
Matt Rubens 2025-06-21 13:08:35 -04:00 committed by GitHub
parent d838109aa3
commit 95497a72c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

10
scripts/update-contributors.js Executable file → Normal file
View file

@ -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}