Skip to content

Commit

Permalink
Fix danger local message when branch is not master
Browse files Browse the repository at this point in the history
The message when there are no changes had a hardcoded value of `master` instead of using the value of `base`, which coudl have been changed with the command line options.
  • Loading branch information
sk- committed Jan 15, 2020
1 parent ecae123 commit 165dabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/commands/danger-local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ localPlatform.validateThereAreChanges().then(changes => {
// try to find the CI danger is running on and use that.
runRunner(app, { source: fakeSource, platform: localPlatform, additionalEnvVars: { DANGER_LOCAL_NO_CI: "yep" } })
} else {
console.log("No git changes detected between head and master.")
console.log(`No git changes detected between head and ${base}.`)
}
})

0 comments on commit 165dabd

Please sign in to comment.