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