Skip to content

Commit 4ed55d4

Browse files
[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>
1 parent 35322cd commit 4ed55d4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/update-contributors.js

100755100644
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,14 @@ 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) {
187190
// Filter out GitHub Actions bot, cursor, and roomote
188-
const filteredContributors = contributors.filter((c) =>
189-
!c.login.includes("[bot]") &&
190-
!c.login.includes("R00-B0T") &&
191-
c.login !== "cursor" &&
192-
c.login !== "roomote"
191+
const filteredContributors = contributors.filter((c) =>
192+
!EXCLUDED_LOGIN_SUBSTRINGS.some(sub => c.login.includes(sub)) &&
193+
!EXCLUDED_LOGIN_EXACTS.includes(c.login)
193194
)
194195

195196
// Start building with Markdown table format

0 commit comments

Comments
 (0)