diff --git a/CHANGELOG.md b/CHANGELOG.md index dabfce980..42fcb340f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ x +- Remove additional danger from pr generated json - [@f-meloni] + # 9.2.4 diff --git a/source/commands/danger-pr.ts b/source/commands/danger-pr.ts index edab8f511..6dc560f5d 100644 --- a/source/commands/danger-pr.ts +++ b/source/commands/danger-pr.ts @@ -138,11 +138,10 @@ async function runHalfProcessJSON(platform: Platform, source: CISource) { const processInput = prepareDangerDSL(dangerDSL) const output = JSON.parse(processInput) - const dsl = { danger: output } if (app.json) { - process.stdout.write(JSON.stringify(dsl, null, 2)) + process.stdout.write(JSON.stringify(output, null, 2)) } else if (app.js) { - console.log(prettyjson.render(dsl)) + console.log(prettyjson.render(output)) } }