Skip to content

Commit 4d82765

Browse files
authored
Hide list of files inside a details tag (#23407)
That way the PR looks shorter, even though it has the same information as before
1 parent 1380929 commit 4d82765

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

script/i18n/report-reset-files.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ function pullRequestBodyReport() {
6666
.forEach((reason) => {
6767
const files = filesByReason[reason]
6868
body.push(`\n### ${reason}`)
69-
body.push(`\n${files.length} files:\n`)
69+
body.push(`\n<details><summary>${files.length} files:</summary>\n`)
7070
const checkBoxes = files.map((file) => `- [ ] ${file}`)
7171
body.push(checkBoxes)
72+
body.push('\n</details>')
7273
})
7374

7475
return body.flat().join('\n')

0 commit comments

Comments
 (0)