Skip to content

Commit

Permalink
Merge pull request #1058 from ahobson/fix-danger-local-main-branch-1057
Browse files Browse the repository at this point in the history
Fix danger local with non master base branch
  • Loading branch information
orta authored Jul 24, 2020
2 parents 924a88f + 5ee6491 commit 7f6d2b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/runner/dangerDSLJSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ export class DangerDSLJSON implements DangerDSLJSONType {
const parsedString = JSON.parse(JSONString)
Object.assign(this, parsedString.danger)

// Merge the command line settings with the settings from the
// original command invocation. This is needed because some
// commands like danger-local have options that are unknown to
// danger-runner
// @ts-ignore
this.settings.cliArgs = cliArgs
Object.assign(this.settings.cliArgs, cliArgs)
}
}

0 comments on commit 7f6d2b3

Please sign in to comment.