Skip to content

Commit e1be123

Browse files
mrubenscursoragentellipsis-dev[bot]
authored andcommitted
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>
1 parent ebe84b8 commit e1be123

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/update-contributors.js

100755100644
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,15 @@ async function readReadme() {
183183
* @param {Array} contributors Array of contributor objects from GitHub API
184184
* @returns {string} HTML for contributors section
185185
*/
186+
const EXCLUDED_LOGIN_SUBSTRINGS = ['[bot]', 'R00-B0T'];
187+
const EXCLUDED_LOGIN_EXACTS = ['cursor', 'roomote'];
188+
186189
function formatContributorsSection(contributors) {
187-
// Filter out GitHub Actions bot
188-
const filteredContributors = contributors.filter((c) => !c.login.includes("[bot]") && !c.login.includes("R00-B0T"))
190+
// Filter out GitHub Actions bot, cursor, and roomote
191+
const filteredContributors = contributors.filter((c) =>
192+
!EXCLUDED_LOGIN_SUBSTRINGS.some(sub => c.login.includes(sub)) &&
193+
!EXCLUDED_LOGIN_EXACTS.includes(c.login)
194+
)
189195

190196
// Start building with Markdown table format
191197
let markdown = `${START_MARKER}

0 commit comments

Comments
 (0)