Skip to content

Commit c12bab1

Browse files
authored
Print default base branch for danger local
This uses commander default argument value
1 parent 1822fe1 commit c12bab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/commands/danger-local.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ program
1818
.usage("[options]")
1919
.description("Runs danger without PR metadata, useful for git hooks.")
2020
.option("-s, --staging", "Just use staged changes.")
21-
.option("-b, --base [branch_name]", "Use a different base branch")
21+
.option("-b, --base [branch_name]", "Use a different base branch", "master")
2222
.option("-j, --outputJSON", "Outputs the resulting JSON to STDOUT")
2323
.allowUnknownOption(true)
2424
setSharedArgs(program).parse(process.argv)
2525

2626
const app = (program as any) as App
27-
const base = app.base || "master"
27+
const base = app.base
2828

2929
const localPlatform = new LocalGit({ base, staging: app.staging })
3030
localPlatform.validateThereAreChanges().then(changes => {

0 commit comments

Comments
 (0)