mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
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:
parent
d838109aa3
commit
95497a72c7
1 changed files with 8 additions and 2 deletions
10
scripts/update-contributors.js
Executable file → Normal file
10
scripts/update-contributors.js
Executable file → Normal 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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue