Skip to content

Commit 36aed18

Browse files
committed
fix: update contributors HTML rendering to use table format; rebase before push in release workflow
1 parent 4b2ce2a commit 36aed18

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/contributors.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ jobs:
3636
.sort((a, b) => b.contributions - a.contributions)
3737
.slice(0, 30);
3838
39-
const html = sorted
39+
const cells = sorted
4040
.map((c) => {
4141
const avatarSource = encodeURIComponent(c.avatar_url.replace(/^https?:\/\//, ''));
4242
const avatarUrl = `https://images.weserv.nl/?url=${avatarSource}&w=72&h=72&fit=cover&mask=circle`;
43-
return `<a href="${c.html_url}" title="${c.login} (${c.contributions} commits)"><img src="${avatarUrl}" alt="${c.login}" width="72" height="72" /></a>`;
43+
return `<td align="center"><a href="${c.html_url}"><img src="${avatarUrl}" width="72" height="72" alt="${c.login}" /><br /><sub><b>${c.login}</b></sub></a></td>`;
4444
})
45-
.join(' ');
45+
.join('');
4646
47-
const wrapped = `<p align="left">${html}</p>`;
47+
const wrapped = `<table><tr>${cells}</tr></table>`;
4848
4949
core.setOutput('html', wrapped);
5050

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,5 @@ jobs:
8484
8585
git add manifest.json package.json
8686
git commit -m "chore: bump version to ${VERSION} [skip ci]"
87+
git pull --rebase origin main
8788
git push

0 commit comments

Comments
 (0)