From 165dabd09bafcffac50ab33035cc7978feba57d5 Mon Sep 17 00:00:00 2001 From: Sebastian Kreft Date: Wed, 15 Jan 2020 17:33:51 -0300 Subject: [PATCH] Fix danger local message when branch is not master 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. --- source/commands/danger-local.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/commands/danger-local.ts b/source/commands/danger-local.ts index c4ba06ec3..0da86dece 100644 --- a/source/commands/danger-local.ts +++ b/source/commands/danger-local.ts @@ -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}.`) } })