You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running into undefined method, please see stack trace below:
Traceback (most recent call last):
12: from /Users/xyz/.rbenv/versions/2.7.4/bin/danger:23:in `<main>'
11: from /Users/xyz/.rbenv/versions/2.7.4/bin/danger:23:in `load'
10: from /Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/danger-9.2.0/bin/danger:5:in `<top (required)>'
9: from /Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
8: from /Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/danger-9.2.0/lib/danger/commands/pr.rb:60:in `run'
7: from /Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/danger-9.2.0/lib/danger/commands/pr.rb:60:in `new'
6: from /Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/danger-9.2.0/lib/danger/danger_core/environment_manager.rb:30:in `initialize'
5: from /Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/danger-9.2.0/lib/danger/danger_core/environment_manager.rb:30:in `new'
4: from /Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/danger-9.2.0/lib/danger/ci_source/local_git_repo.rb:48:in `initialize'
3: from /Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/danger-9.2.0/lib/danger/ci_source/local_git_repo.rb:94:in `find_pull_request'
2: from /Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/danger-9.2.0/lib/danger/ci_source/support/pull_request_finder.rb:18:in `call'
1: from /Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/danger-9.2.0/lib/danger/ci_source/support/pull_request_finder.rb:51:in `find_pull_request'
/Users/xyz/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/danger-9.2.0/lib/danger/ci_source/support/pull_request_finder.rb:75:in `generate_remote_pull_request': undefined method `[]' for nil:NilClass (NoMethodError)
Your Environment
Which CI are you running on? - Fails on both local and on TeamCity
Are you running the latest version of Danger? Yes 9.2.0
What is your Dangerfile?
commit_message_types=["feature","bugfix","chore","lint"]git.commits.eachdo | commit |
# All Commits should start with feat/chore/bugfix/lint.ifcommit.message.start_with?(*commit_message_types) == falsefail"Commit template not followed. #{commit.message}"end# Should be more than 50 characters.ifcommit.message.length < 50fail"Please include a meaningful commit message. #{commit.message}"endend
The text was updated successfully, but these errors were encountered:
Report
What did you do?
danger pr <Pull_Request>
What did you expect to happen?
Run against danger file
What happened instead?
Running into undefined method, please see stack trace below:
Your Environment
The text was updated successfully, but these errors were encountered: