-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
[BUG] renaming master branch causes danger local
to fail even when base branch is provided
#1057
Comments
@ahobson -- We don't run (I moved |
danger local
to fail even when base branch is provided
@steipete -- should we move |
Looks like Sure, I'm not against moving danger to use main |
From some local debugging, I'm pretty sure the base branch settings is lost in the JSON serialization step when calling |
After some more spelunking, it seems that the danger runner is invoked with the right options:
But sharedDangerfileArgs.ts does not support the The setting is in the JSON representation, but dangerDSLJSON.ts overrides the settings with the ones from the command line. One way to fix it would be to merge the settings from the JSON with the command line
Another way would be to add
Any preference? |
@orta Probably has an opinion on which should win (json or Args) But generally, I bet that the args should work as they are being passed! |
Describe the bug
We renamed our
master
branch tomain
anddanger local -b main
failsTo Reproduce
Steps to reproduce the behavior:
git checkout master
git branch -m main
git checkout -b testbranch
yarn run danger local -b main
Expected behavior
yarn run danger local -b main
runs danger without errorScreenshots
Your Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: