Open GantMan opened 6 years ago
See also https://github.com/danger/danger-js/pull/465#issuecomment-355191964; I've got a hunch that the condition for printing that message is flipped?
So… the condition's not flipped, but for some reason it's still being printed even when invoked as danger ci
?
It likely needs a check if process.args
does not include the strings: init, ci, process, pr or --help
I've not had much time for Danger during the work week, so will take a look over the weekend
I'm getting this error, even though I'm running danger 3.0.3?
$ /Users/greenhouse/tmpXwQA6s/node_modules/.bin/danger ci
You may have updated from Danger 2.x -> 3.x without updating from `danger` to `danger ci`.
Skipping Danger due to this run not executing on a PR.
Done in 1.08s.
Invoked via a shell script that calls yarn danger ci
Note: I'm using the new Nevercode.io CISource, so I don't know if that's related to the issue.
this is fixed in https://github.com/danger/danger-js/pull/473
but it isn't shipped yet
Ahhhh @orta, thanks, I missed that that PR existed and hadn't shipped yet, and my previously working danger setup was on a different CI provider running Danger 2.x.
@orta --
This issue is blocking me from running danger right now as my old CI is gone & I'm leaning towards using Nevercode, but the lack of danger is one of my final concerns on selecting that CI provider.
I'm not sure how this is blocking you? This is just a console.error:
It has no effect on behavior, which is why it's not been a priority. Your changes to nevercode were shipped 6 days ago in 3.0.3 - https://github.com/danger/danger-js/pull/474#issuecomment-356294695
Awesome, then I have a different problem. I thought that was a failure of danger where it was aborting. I didn't look further. -- For some reason danger is doing nothing (I guess silently) when run on Nevercode.
They just shipped some new environment variables this morning -- to make Nevercode more normal as compared to other CI sources for danger's purposes, so I'll patch the cisource to use shortly and see if that fixes things.
Yep, try run your command with DEBUG="*"
- DEBUG="*" yarn danger ci
run
yarn danger ci
warning comes out telling me I didn't run it right.Travis report: https://travis-ci.org/infinitered/solidarity/jobs/324899875
Not sure why Travis got this message, but it's off.