diff --git a/.github/scripts/update-contributors.js b/.github/scripts/update-contributors.js
index 39f7d2fbe..75e6f2881 100644
--- a/.github/scripts/update-contributors.js
+++ b/.github/scripts/update-contributors.js
@@ -12,14 +12,31 @@
throw new Error('Invalid response from GitHub API');
}
- const contributors = response.data.map(user => {
+ let contributors = '
\n\n';
+
+ response.data.forEach((user, index) => {
if (!user.login || !user.html_url || !user.avatar_url) {
throw new Error('Invalid user data from GitHub API');
}
- return `| ![${user.login}](${user.avatar_url}&s=100) | [@${user.login}](${user.html_url}) |`;
- }).join('\n');
- fs.writeFileSync('CONTRIBUTORS.md', `# Contributors\n\n| Avatar | Username |\n| --- | --- |\n${contributors}\n`);
+ contributors += `
+
+
+
+
+ ${user.login}
+
+ | `;
+
+ // Add a new row every 6th user
+ if ((index + 1) % 6 === 0) {
+ contributors += '\n
\n\n';
+ }
+ });
+
+ contributors += '
\n
';
+
+ fs.writeFileSync('CONTRIBUTORS.md', `## Contributors\n\n\n${contributors}\n\n`);
} catch (error) {
console.error('Error updating contributors:', error.message);