Skip to content

Commit

Permalink
Merge pull request #1251 from danger/glensc-patch-1
Browse files Browse the repository at this point in the history
Print default base branch for danger local
  • Loading branch information
orta committed Mar 15, 2022
2 parents 1822fe1 + c12bab1 commit d313d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/commands/danger-local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ program
.usage("[options]")
.description("Runs danger without PR metadata, useful for git hooks.")
.option("-s, --staging", "Just use staged changes.")
.option("-b, --base [branch_name]", "Use a different base branch")
.option("-b, --base [branch_name]", "Use a different base branch", "master")
.option("-j, --outputJSON", "Outputs the resulting JSON to STDOUT")
.allowUnknownOption(true)
setSharedArgs(program).parse(process.argv)

const app = (program as any) as App
const base = app.base || "master"
const base = app.base

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

0 comments on commit d313d16

Please sign in to comment.