Skip to content

Commit 73066e1

Browse files
committed
Change from code review
1 parent 8724a28 commit 73066e1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/preview-build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,21 @@ jobs:
267267
268268
const body = [
269269
title,
270-
...links.slice(0, 20).map(i => `- ${i}`),
270+
...links.slice(0, 10).map(i => `- ${i}`),
271271
]
272272
273-
if (links.length > 20) {
273+
body.push('<details>');
274+
body.push('<summary>Full list of changed files</summary>');
275+
body.push('');
276+
for (const link of links.slice(10, 100)) {
277+
body.push(`- ${link}`);
278+
}
279+
body.push('');
280+
body.push('</details>');
281+
282+
if (links.length > 100) {
274283
body.push('');
275-
body.push(`<sub>There are ${links.length - 20} more links...</sub>`);
284+
body.push(`<sub>In total, ${links.length} files changed.</sub>`);
276285
}
277286
278287
const owner = context.repo.owner;

0 commit comments

Comments
 (0)