-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
danger local --base
inconsistency
#496
Comments
Issue is here where base is hardcoded to master danger-js/source/runner/jsonToDSL.ts Line 18 in f7a5287
Will try and find where to change |
Not 100% sure but I don't think the danger-runner.ts file should be ran if doing a local run Here is where the file is imported
|
Yep - it will run, that's the issue - the base needs to go from the local process to the separate runner process somehow |
I'd been wondering about expanding the JSON DSL sent to the sub-process to include individual command settings (it may already be doing this TBH) looks like this is probably the case |
I'm mid some pretty deep work on Peril so don't want to use my next spare time on this until the peril work is ready - so if someone wants to take a look at that PR that's fine with me |
Yeah we can look at it. Might need a bit of validation before hand to make
sure I'm doing the right thing
…On 24 Jan 2018 3:10 pm, "Orta" ***@***.***> wrote:
I'm mid some pretty deep work on Peril
<danger/peril#189> so don't want to use my next
spare time on this until the peril work is ready - so if someone wants to
take a look at that PR that's fine with me
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#496 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABRUq2sYOmSh3ox8i5zC8sdNJQqZ7eCkks5tN0fJgaJpZM4RrU0S>
.
|
You want to put the fill the danger-js/source/dsl/DangerDSL.ts Lines 17 to 46 in f0a7cf9
Then use that in the line you mentioned here: danger-js/source/runner/jsonToDSL.ts Line 18 in f7a5287
|
Ok. I think I get it
…On 24 Jan 2018 3:15 pm, "Orta" ***@***.***> wrote:
You want to put the fill the cliArgs in here, in the local somehow
https://github.com/danger/danger-js/blob/f0a7cf9c452cc52755b4a0e04c7b8a
89a2539027/source/dsl/DangerDSL.ts#L17-L46
Then use that in the line you mentioned here: https://github.com/danger/
danger-js/blob/f7a528779623f8e2be74cc4f100c744f0ef2696f/source/runner/
jsonToDSL.ts#L18
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#496 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABRUq-6kmlV4C6crxdn0KuDeQjz3h9DNks5tN0kogaJpZM4RrU0S>
.
|
I'm trying to add tests for the danger-runner file and saw your note at the top to run this command instead, as pretty fairly, it's hard to unit test a CLI call.
Was just wondering if you mind me refactoring the non cli parts out into a separate file so I can test it a bit easier? |
Sure, - you probably don't have a |
ah, that's probably it. I've made some unit tests and split it up a little bit. I'm attaching the CLI args at the point the JSON is parsed. not sure if you use it but the jest extension for vscode is really good :) Good choice on using jest, I really like it :) |
Thanks, I made that extension ;) |
Doing some more testing with
--base
, looks like it is being ignored on the call tolocalGetDiff
triggered in the subprocess:The text was updated successfully, but these errors were encountered: