feat(standard-make): use details for large test outputs

This commit is contained in:
wpetit 2024-04-11 14:27:13 +02:00
parent 170f143b00
commit 90587b05a9
1 changed files with 6 additions and 0 deletions

View File

@ -84,9 +84,15 @@ void call(Map options = [:]) {
String report = """
|# Test report for ${gitCommit}
|
|<details ${output.count('\n') <= 10 ? 'open' : ''}>
|
|<summary>Output</summary>
|
|```
|${output}
|```
|
|</details>
|""".trim().stripMargin()
gitea.commentPullRequest(repo, env.CHANGE_ID, report)