Skip to content

Commit

Permalink
Remove the danger -> danger ci warning, it's been long enough
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Apr 12, 2018
1 parent 199598b commit 4fa31ba
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions source/commands/danger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,4 @@ program
console.log(" http://danger.systems/js/reference.html")
})

// Commander mutates process.argv
const originalProcessArgV = process.argv
program.parse(process.argv)

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

if (showUpgradeNotice) {
console.error("You may have updated from Danger 2.x -> 3.x without updating from `danger` to `danger ci`.")
}

0 comments on commit 4fa31ba

Please sign in to comment.