0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

ci: add collapse for file diff (#788)

* ci: add collapse for file diff

* ci: update comment
This commit is contained in:
Gao Sun 2022-05-10 20:34:18 +08:00 committed by GitHub
parent b8143ff1a7
commit 2b3061d06d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,9 +83,9 @@ jobs:
return `|${filename}|${format(Number(diff))}|`;
}).join('\n');
return `#### Size Diff (Compare to \`master\`)\n**Total** ${format(diff)}\n${
result.length ? `\n${filesHeader}${filesData}` : ''
}\n`;
return `#### COMPARE TO \`master\`\n**Total Size Diff** ${format(diff)}\n${
result.length ? `\n<details>\n<summary><b>Diff by File</b></summary>\n\n${filesHeader}${filesData}</details>\n` : ''
}`;
- uses: marocchino/sticky-pull-request-comment@v2
with: