Cleanup Dangerfile (#1212)

`has_changes_in_source_directory` and `declared_trivial` are not longer needed after after PR #1031.
This commit is contained in:
Huy Nguyen 2018-11-04 18:22:28 -08:00 committed by GitHub
parent e745aded7d
commit 87615b0ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,6 @@
require 'open-uri'
source_pattern = /(\.m|\.mm|\.h)$/
# Sometimes it's a README fix, or something like that - which isn't relevant for
# including in a project's CHANGELOG for example
declared_trivial = github.pr_title.include? "#trivial"
has_changes_in_source_directory = !git.modified_files.grep(/Source/).empty?
modified_source_files = git.modified_files.grep(source_pattern)
has_modified_source_files = !modified_source_files.empty?