Skip to content

Commit

Permalink
Merge pull request #954 from danger/remove_additional_danger_from_pr_…
Browse files Browse the repository at this point in the history
…json

Remove additional danger from pr json
  • Loading branch information
orta authored Nov 8, 2019
2 parents 48ab882 + f67716a commit e091d8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ x

<!-- Your comment below this -->

- Remove additional danger from pr generated json - [@f-meloni]

<!-- Your comment above this -->

# 9.2.4
Expand Down
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 e091d8b

Please sign in to comment.