Skip to content

Commit e4c0aa9

Browse files
private repo anonymise
1 parent cd1c32b commit e4c0aa9

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

scripts/update_stats.cjs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,16 @@ function renderMarkdown(stats, topRepos) {
217217
lines.push("");
218218
lines.push(`| Repository | Commits | Open Issues | Open PRs | Stars | Forks |`);
219219
lines.push(`|---|---:|---:|---:|---:|---:|`);
220-
for (const r of topRepos) {
221-
lines.push(
222-
`| [${r.name}](https://github.com/${ORG}/${r.name}) | ${fmt(r.commits)} | ${fmt(
223-
r.issuesOpen
224-
)} | ${fmt(r.prsOpen)} | ${fmt(r.stars)} | ${fmt(r.forks)} |`
225-
);
226-
}
220+
for (const r of topRepos) {
221+
const repoLabel = r.isPrivate
222+
? "🔒 Private repo"
223+
: `[${r.name}](https://github.com/${ORG}/${r.name})`;
224+
225+
lines.push(
226+
`| ${repoLabel} | ${fmt(r.commits)} | ${fmt(r.issuesOpen)} | ${fmt(r.prsOpen)} | ${fmt(r.stars)} | ${fmt(r.forks)} |`
227+
);
228+
}
229+
227230
lines.push(`</details>`);
228231
lines.push("");
229232
}

0 commit comments

Comments
 (0)