feat(parser/diff): remove diff output suffix
This commit is contained in:
parent
69b2115a73
commit
d80704643a
|
@ -87,8 +87,9 @@ func (*Diff) Run(results []stage.ExecutorResult, confAny any) (
|
||||||
// Generate diff block with surrounding context
|
// Generate diff block with surrounding context
|
||||||
diffOutput := generateDiffWithContext(
|
diffOutput := generateDiffWithContext(
|
||||||
stdoutLines, resultLines, diffOps)
|
stdoutLines, resultLines, diffOps)
|
||||||
|
diffOutput = strings.TrimSuffix(diffOutput, "\n \n")
|
||||||
comment += fmt.Sprintf(
|
comment += fmt.Sprintf(
|
||||||
"```diff\n%s```\n",
|
"```diff\n%s\n```\n",
|
||||||
diffOutput,
|
diffOutput,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user