-
-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add uncommited changeds to LocalGit #990
Add uncommited changeds to LocalGit #990
Conversation
Soyn
commented
Feb 11, 2020
- details in danger local should consider uncommitted changes #972
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel we shouldn't change how danger local
works, but just add a parameter that you can pass to danger local
to append in case the unstaged files to the diff
Yeah, there should already be a |
ed0352f
to
08be748
Compare
I have updated the pull request. |
source/dsl/cli-args.ts
Outdated
@@ -15,6 +15,8 @@ export interface CliArgs { | |||
dangerfile: string | |||
/** So you can have many danger runs in one code review */ | |||
id: string | |||
/** Use staged changes */ | |||
staged?: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this works? The option above is .option("-s, --staging", "Just use staged changes.")
- so I'd expect this to be staging
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my local test. It works well. I will update the pull request later.
Make |
.option("-b, --base [branch_name]", "Use a different base branch") | ||
setSharedArgs(program).parse(process.argv) | ||
|
||
const app = (program as any) as App | ||
const base = app.base || "master" | ||
|
||
const localPlatform = new LocalGit({ base, staged: app.staging }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is why it used to work - makes sense
Cool beans, thanks! |