Danger: Default Dangerfile reported as "invalid"

Created on 26 Jul 2016  路  4Comments  路  Source: danger/danger

After going through all steps of the setup process (with the latest version), both CircleCI and danger local report that the Dangerfile is invalid. This is the default Dangerfile, as produced by the setup process.

/usr/local/opt/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/danger-2.0.0/lib/danger/danger_core/dangerfile.rb:60:in `method_missing':  (Danger::DSLError)
[!] Invalid `Dangerfile` file: undefined local variable or method `pr_title' for #<Danger::Dangerfile:0x007fefe21bca90>. Updating the Danger gem might fix the issue.

Commenting out the pr_title lines will just cause it to fail on the next Danger DSL method. I think the real error is something else, probably something small even, but I don't know how to debug this. It passed all the GitHub-related steps (repo access with the access token, etc.).

Any clues how to resolve this?

Most helpful comment

Thanks @epologee

All 4 comments

It's github.pr_title any idea where you found that docs from? If it's from danger init then this https://github.com/danger/danger/pull/372 will fix that, I will make a release so others don't hit the same problem!

Yes, it was from danger init, after reading the manual (:wink:) at http://danger.systems/guides/getting_started.html

screen shot 2016-07-26 at 10 27 07 am

Shipped, no-one else should have that problem 馃懐

Thanks @epologee

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nikolaykasyanov picture nikolaykasyanov  路  8Comments

tbrand picture tbrand  路  6Comments

JuanitoFatas picture JuanitoFatas  路  6Comments

jk picture jk  路  10Comments

brettha picture brettha  路  9Comments