Closed yq314 closed 3 months ago
Did you try to pass random variables? If you dont need them, you can pass any variables since they should remain unused
Did you try to pass random variables? If you dont need them, you can pass any variables since they should remain unused
yeah but looks like it will always make calls to bitbucket api for diff and commits.
You can run danger-js in "offline mode" using the FAKE_CI (search docs/repo) and unset the related bitbucket environment flags.
(In other words: Don't tell danger-js that it's in bitbucket if you want to skip calling the bitbucket API)
Thanks, FAKE_CI works, but I ended up running danger local as danger ci doesn’t allow me to specify base branch
@yq314 danger local
is perfectly fine and I probably should have recommended that one before recommending FAKE_CI
! Cheers!
Describe the bug I'd like to run dangerjs in bitbucket cloud and I don't need access to any cloud features, I just need to validate git changed rules so accessing bitbucket API is not necessary.
I've tried with --no-publish-check and --text-only, however when I run it in ci it still require DANGER_BITBUCKET_USERNAME and DANGER_BITBUCKET_PASSWORD. Is there a way to skip this setup completely?
To Reproduce Steps to reproduce the behavior:
Expected behavior
It should run successfully if I don't need anything from the API, like
danger.bitbucket_cloud
. I'm only usingdanger.git.modified_files
in the dangerfile.Screenshots If applicable, add screenshots to help explain your problem.
Your Environment
Additional context Add any other context about the problem here.