File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import { writeFileSync , readFileSync } from 'fs' ;
33import https from 'https' ;
44
5- const repo = 'zumerlab/snapdom' ; // ⚠️ tu repo
5+ const repo = 'zumerlab/snapdom' ;
66const readmePath = 'README.md' ;
77
88function fetchContributors ( ) {
@@ -29,17 +29,18 @@ function fetchContributors() {
2929
3030function 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+
4344function updateReadme ( contributorHTML ) {
4445 const content = readFileSync ( readmePath , 'utf8' ) ;
4546 const updated = content . replace (
You can’t perform that action at this time.
0 commit comments