Skip to content

Commit

Permalink
Move base to local and handle staging
Browse files Browse the repository at this point in the history
  • Loading branch information
f-meloni committed Oct 20, 2019
1 parent 692863e commit 5552c7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions source/commands/danger-local.ts
Expand Up @@ -19,6 +19,8 @@ program
// TODO: this option
// .option("-s, --staging", "Just use staged changes.")
.description("Runs danger without PR metadata, useful for git hooks.")
.option("-b, --base [branch_name]", "Use a different base branch")
.option("-s, --staging", "Use a different base branch")
setSharedArgs(program).parse(process.argv)

const app = (program as any) as App
Expand Down
2 changes: 1 addition & 1 deletion source/commands/danger-pr.ts
Expand Up @@ -67,7 +67,7 @@ const app = (program as any) as App
const customProcess = !!app.process

if (program.args.length === 0) {
console.error("Please include a PR URL to run against")
console.error("")
process.exitCode = 1
} else {
const customHost =
Expand Down
1 change: 0 additions & 1 deletion source/commands/utils/sharedDangerfileArgs.ts
Expand Up @@ -38,7 +38,6 @@ export default (command: any) =>
"Specify a custom dangerfile path, remote urls only work with github"
)
.option("-i, --id [danger_id]", "Specify a unique Danger ID for the Danger run")
.option("-b, --base [branch_name]", "Use a different base branch")
.option("-c, --external-ci-provider [modulePath]", "Specify custom CI provider")
.option("-p, --process [command]", "[dev] Runs a custom sub-process instead of the Danger JS runtime")
.option("-u, --passURLForDSL", "[dev] Use a custom URL to send the Danger DSL into the sub-process")
Expand Down

0 comments on commit 5552c7b

Please sign in to comment.