Skip to content

Commit

Permalink
Remove additional danger from pr generated json
Browse files Browse the repository at this point in the history
  • Loading branch information
f-meloni committed Nov 7, 2019
1 parent 22ef49e commit 4ae1fc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/commands/danger-pr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

0 comments on commit 4ae1fc3

Please sign in to comment.