fix(parser/resultdetail): add extra newline when showing files
All checks were successful
build / build (push) Successful in 1m5s
build / trigger-build-image (push) Successful in 7s

This commit is contained in:
张泊明518370910136 2024-10-12 02:03:05 -04:00
parent 2a2166f1ad
commit 703ff7d4be
GPG Key ID: D47306D7062CDA9D

View File

@ -49,7 +49,7 @@ func (*ResultDetail) Run(results []stage.ExecutorResult, confAny any) (
content, ok := result.Files[file]
comment += fmt.Sprintf("File: `%s`.\n", file)
if ok {
comment += fmt.Sprintf("```%s```\n", content)
comment += fmt.Sprintf("```%s\n```\n", content)
} else {
comment += "Not found.\n"
}