lib/danger/commands/runner.rb in danger-0.6.5 vs lib/danger/commands/runner.rb in danger-0.7.0
- old
+ new
@@ -1,9 +1,10 @@
module Danger
class Runner < CLAide::Command
require 'danger/commands/init'
require 'danger/commands/local'
+ require 'danger/commands/new_plugin'
self.summary = 'Run the Dangerfile.'
self.command = 'danger'
def initialize(argv)
@@ -45,13 +46,15 @@
dm.parse Pathname.new(@dangerfile_path)
post_results(dm)
dm.env.clean_up
+
+ dm.print_results
end
def post_results(dm)
gh = dm.env.request_source
- gh.update_pull_request!(warnings: dm.warnings, errors: dm.errors, messages: dm.messages)
+ gh.update_pull_request!(warnings: dm.warnings, errors: dm.errors, messages: dm.messages, markdowns: dm.markdowns)
end
end
end