Skip to content

Commit 03e2673

Browse files
authored
Merge pull request webpack#6713 from montogeek/patch-1
bot: Encapsulate output logs in details tag
2 parents 19ebed9 + 83df7cb commit 03e2673

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

open-bot.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,30 @@ rules:
8080
- "^[\\s\\S]+?\\d+\\s+pending\n+"
8181
- "npm ERR!.*\n"
8282
- "\n*=============================================================================\n[\\s\\S]*"
83+
string_cleanup:
84+
id: firstError
85+
value: "{{{logResult}}}"
86+
remove:
87+
- "\\s2\\)\\s[\\s\\S]*"
88+
string_cleanup:
89+
id: remainingErrors
90+
value: "{{{logResult}}}"
91+
remove:
92+
- "^[\\s\\S]+?(?=\\s2\\)\\s)"
8393
actions:
8494
comment:
8595
identifier: "ci-result"
8696
message: |-
8797
@{{commit.author.login}} Please review the following output log for errors:
88-
98+
```text
99+
{{{firstError}}}
100+
```
101+
<details>
102+
<summary>Show remaining errors</summary>
89103
``` text
90-
{{{logResult}}}
104+
{{{remainingErrors}}}
91105
```
106+
</details>
92107
93108
See [complete report here]({{status.target_url}}).
94109
set:

0 commit comments

Comments
 (0)