fix(parser/resultdetail): file format
This commit is contained in:
parent
5f63301656
commit
7004c5368e
|
@ -47,9 +47,9 @@ func (*ResultDetail) Run(results []stage.ExecutorResult, confAny any) (
|
||||||
}
|
}
|
||||||
for _, file := range conf.ShowFiles {
|
for _, file := range conf.ShowFiles {
|
||||||
content, ok := result.Files[file]
|
content, ok := result.Files[file]
|
||||||
comment += fmt.Sprintf("File: `%s`.\n", file)
|
comment += fmt.Sprintf("File: `%s`:\n", file)
|
||||||
if ok {
|
if ok {
|
||||||
comment += fmt.Sprintf("```%s\n```\n", content)
|
comment += fmt.Sprintf("```\n%s\n```\n", content)
|
||||||
} else {
|
} else {
|
||||||
comment += "Not found.\n"
|
comment += "Not found.\n"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user