Sha256: 43f53e0ec2ff9a30b314174aab856f9e127b2da9a9f77aa4b53cfb3f494ebaa8

Contents?: true

Size: 412 Bytes

Versions: 107

Compression:

Stored size: 412 Bytes

Contents

# coding: utf-8

require "danger/request_sources/github/github_review"

module Danger
  module RequestSources
    module GitHubSource
      class ReviewResolver
        def self.should_submit?(review, body)
          return !same_body?(body, review.body)
        end

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

Version data entries

107 entries across 107 versions & 1 rubygems

Version Path
danger-5.7.1 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.7.0 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.6.7 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.6.6 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.6.5 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.6.4 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.6.3 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.6.2 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.6.1 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.6.0 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.5.13 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.5.12 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.5.11 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.5.10 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.5.9 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.5.8 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.5.7 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.5.6 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.5.5 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.5.4 lib/danger/request_sources/github/github_review_resolver.rb