File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ func (m *Message) BuildComment(
227
227
sb .Reset ()
228
228
sb .WriteString (header )
229
229
contentLength = len (continuedHeader )
230
+
230
231
}
231
232
}
232
233
@@ -317,6 +318,7 @@ func (m *Message) BuildComment(
317
318
sb .WriteString (splitCommentFooter )
318
319
comments = append (comments , sb .String ())
319
320
sb .Reset ()
321
+ sb .WriteString (header )
320
322
contentLength = len (continuedHeader )
321
323
msg = secondPart
322
324
} else {
Original file line number Diff line number Diff line change @@ -409,6 +409,7 @@ func TestBuildComment_Deep(t *testing.T) {
409
409
// Check that split warnings are present in middle comments
410
410
foundSplitWarnings := 0
411
411
for i := 0 ; i < len (comments )- 1 ; i ++ {
412
+ assert .Contains (t , comments [i ], "## Kubechecks id Report" )
412
413
if strings .Contains (comments [i ], "> **Warning**: Output length greater than maximum allowed comment size. Continued in next comment" ) {
413
414
foundSplitWarnings ++
414
415
}
You can’t perform that action at this time.
0 commit comments