Skip to content

Commit

Permalink
Merge cliArgs to fix danger-local custom base branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hobson committed Jul 24, 2020
1 parent 924a88f commit 5ee6491
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 5ee6491

Please sign in to comment.