feat(standard-make): use details for large test outputs
This commit is contained in:
parent
170f143b00
commit
90587b05a9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue