Browse Source

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 <[email protected]>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Matt Rubens 9 months ago
parent
commit
95497a72c7
1 changed files with 8 additions and 2 deletions
  1. 8 2
      scripts/update-contributors.js

+ 8 - 2
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}