mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-08 23:30:22 +00:00
Cleanup Dangerfile (#1212)
`has_changes_in_source_directory` and `declared_trivial` are not longer needed after after PR #1031.
This commit is contained in:
parent
e745aded7d
commit
87615b0ec2
@ -2,11 +2,6 @@ require 'open-uri'
|
|||||||
|
|
||||||
source_pattern = /(\.m|\.mm|\.h)$/
|
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)
|
modified_source_files = git.modified_files.grep(source_pattern)
|
||||||
has_modified_source_files = !modified_source_files.empty?
|
has_modified_source_files = !modified_source_files.empty?
|
||||||
added_source_files = git.added_files.grep(source_pattern)
|
added_source_files = git.added_files.grep(source_pattern)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user