Skip to content

Commit b4cf877

Browse files
authored
Update update-contributors.js
1 parent 183de8c commit b4cf877

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/scripts/update-contributors.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { writeFileSync, readFileSync } from 'fs';
33
import https from 'https';
44

5-
const repo = 'zumerlab/snapdom'; // ⚠️ tu repo
5+
const repo = 'zumerlab/snapdom';
66
const readmePath = 'README.md';
77

88
function fetchContributors() {
@@ -29,17 +29,18 @@ function fetchContributors() {
2929

3030
function buildHTML(contributors) {
3131
return (
32-
'\n<p align="center">\n' +
32+
'\n<p>\n' +
3333
contributors
3434
.map(c => {
35-
const avatar = `<a href="${c.html_url}" title="${c.login}"><img src="${c.avatar_url}&s=100" width="60" height="60" style="border-radius: 50%; margin: 5px;" alt="${c.login}"/></a>`;
35+
const avatar = `<a href="${c.html_url}" title="${c.login}"><img src="${c.avatar_url}&s=100" style="border-radius:50%; width:60px; height:60px; object-fit:cover; margin:5px;" alt="${c.login}"/></a>`;
3636
return avatar;
3737
})
3838
.join('\n') +
3939
'\n</p>\n'
4040
);
4141
}
4242

43+
4344
function updateReadme(contributorHTML) {
4445
const content = readFileSync(readmePath, 'utf8');
4546
const updated = content.replace(

0 commit comments

Comments
 (0)