lib/danger/request_sources/github/github_review.rb in danger-9.1.0 vs lib/danger/request_sources/github/github_review.rb in danger-9.2.0
- old
+ new
@@ -1,7 +1,5 @@
-# coding: utf-8
-
require "octokit"
require "danger/ci_source/ci_source"
require "danger/request_sources/github/github_review_resolver"
require "danger/danger_core/messages/violation"
require "danger/danger_core/messages/markdown"
@@ -33,19 +31,22 @@
@review_json = review_json
end
def id
return nil unless self.review_json
+
self.review_json["id"]
end
def body
return "" unless self.review_json
+
self.review_json["body"]
end
def status
return STATUS_PENDING if self.review_json.nil?
+
return self.review_json["state"]
end
# Starts the new review process
def start