danger-js icon indicating copy to clipboard operation
danger-js copied to clipboard

[BUG] Can not fake beeing on CI with base branch main instead of master

Open muuvmuuv opened this issue 3 years ago • 2 comments

Describe the bug

https://danger.systems/js/guides/the_dangerfile.html#using-danger-and-faking-being-on-a-ci

Following the instruction fails due to base branch is main and no way to change that with a flag since ci has no -b flag.

To Reproduce Steps to reproduce the behavior: 1. 2. 3. 4.

Expected behavior

Screenshots If applicable, add screenshots to help explain your problem.

Your Environment

software version
danger.js
node
npm
Operating System

Additional context Add any other context about the problem here.

muuvmuuv avatar Jun 15 '22 09:06 muuvmuuv

You're welcome to look at adding that flag 👍🏻

orta avatar Jun 15 '22 09:06 orta

Workaround: use danger pr <URL> instead of danger ci, at least that's what I have in our repo's troubleshooting comments :P

fbartho avatar Apr 03 '23 22:04 fbartho