Skip to content

Commit

Permalink
Some process faffing
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jan 6, 2018
1 parent b2b8d06 commit 79aaec0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion source/commands/danger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ program

program.parse(process.argv)

const showUpgradeNotice = process.env.CI && ['init', 'ci', 'process', 'pr', '--help'].some(cmd => process.argv.includes(cmd))
const showUpgradeNotice =
process.env.CI && ["init", "ci", "process", "pr", "--help"].some(cmd => process.argv.includes(cmd))

if (showUpgradeNotice) {
console.error("You may have updated from Danger 2.x -> 3.x without updating from `danger` to `danger ci`.")
}
2 changes: 0 additions & 2 deletions source/runner/Executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ export class Executor {
*/
async handleResultsPostingToSTDOUT(results: DangerResults) {
const { fails, warnings, messages, markdowns } = results
process.exitCode = fails.length > 0 ? 1 : 0

if (this.options.jsonOnly) {
// Format for Danger Process
const results = {
Expand Down

0 comments on commit 79aaec0

Please sign in to comment.