Class: Danger::RequestSources::GitHubSource::ReviewResolver

Inherits:
Object
  • Object
show all
Defined in:
lib/danger/request_sources/github/github_review_resolver.rb

Class Method Summary collapse

Class Method Details

.same_body?(body1, body2) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/danger/request_sources/github/github_review_resolver.rb', line 11

def self.same_body?(body1, body2)
  return !body1.nil? && !body2.nil? && body1 == body2
end

.should_submit?(review, body) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/danger/request_sources/github/github_review_resolver.rb', line 7

def self.should_submit?(review, body)
  return !same_body?(body, review.body)
end