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.0.2 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.0.1 lib/danger/request_sources/github/github_review_resolver.rb
danger-5.0.0 lib/danger/request_sources/github/github_review_resolver.rb
danger-4.3.5 lib/danger/request_sources/github/github_review_resolver.rb
danger-4.3.4 lib/danger/request_sources/github/github_review_resolver.rb
danger-4.3.3 lib/danger/request_sources/github/github_review_resolver.rb
danger-4.3.2 lib/danger/request_sources/github/github_review_resolver.rb