Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/danger/danger-js into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jan 7, 2022
2 parents 68ab2e9 + d8ac772 commit 38a963e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"https-proxy-agent": "^2.2.1",
"hyperlinker": "^1.0.0",
"json5": "^2.1.0",
"jsonpointer": "^4.0.1",
"jsonpointer": "^5.0.0",
"jsonwebtoken": "^8.4.0",
"lodash.find": "^4.6.0",
"lodash.includes": "^4.3.0",
Expand Down
2 changes: 1 addition & 1 deletion source/commands/ci/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const runRunner = async (app: SharedCLI, config?: Partial<RunnerConfig>)
const execConfig: ExecutorOptions = {
stdoutOnly: !platform.supportsCommenting() || app.textOnly,
verbose: app.verbose,
jsonOnly: false,
jsonOnly: app.outputJSON,
dangerID: app.id || "Danger",
passURLForDSL: app.passURLForDSL || false,
disableGitHubChecksSupport: !app.useGithubChecks,
Expand Down
1 change: 1 addition & 0 deletions source/commands/danger-local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ program
.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("-j, --outputJSON", "Outputs the resulting JSON to STDOUT")
.allowUnknownOption(true)
setSharedArgs(program).parse(process.argv)

Expand Down
2 changes: 2 additions & 0 deletions source/commands/utils/sharedDangerfileArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export interface SharedCLI extends program.CommanderStatic {
newComment?: boolean
/** Removes all previous comment and create a new one in the end of the list */
removePreviousComments?: boolean
/** Output JSON to STDOUT */
outputJSON: boolean
}

export default (command: any) =>
Expand Down

0 comments on commit 38a963e

Please sign in to comment.