File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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+
186189function 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
You can’t perform that action at this time.
0 commit comments