lib/danger/request_sources/github/github_review.rb in danger-5.3.2 vs lib/danger/request_sources/github/github_review.rb in danger-5.3.3

- old
+ new

@@ -1,10 +1,9 @@ # coding: utf-8 require "octokit" require "danger/ci_source/ci_source" -require "danger/request_sources/github/octokit_pr_review" require "danger/request_sources/github/github_review_resolver" require "danger/danger_core/messages/violation" require "danger/danger_core/messages/markdown" require "danger/helpers/comments_helper" require "danger/helpers/comment" @@ -63,10 +62,10 @@ submission_body = generate_body # If the review resolver says that there is nothing to submit we skip submission return unless ReviewResolver.should_submit?(self, submission_body) - @review_json = @client.create_pull_request_review(@ci_source.repo_slug, @ci_source.pull_request_id, generate_event(general_violations), submission_body) + @review_json = @client.create_pull_request_review(@ci_source.repo_slug, @ci_source.pull_request_id, event: generate_event(general_violations), body: submission_body) end def generated_by_danger?(danger_id = "danger") self.review_json["body"].include?("generated_by_#{danger_id}") end