mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:32:45 +08:00
DEV: simpler Dangerfile logic (#6911)
This commit is contained in:
parent
426907cb88
commit
6f0bc16baf
|
@ -19,8 +19,8 @@ if locales_changes.any? && has_non_en_locales_changes
|
|||
end
|
||||
|
||||
files = (git.added_files + git.modified_files)
|
||||
.reject! { |path| path.start_with?("plugins/") }
|
||||
.reject! { |path| !(path.end_with?("es6") || path.end_with?("rb")) }
|
||||
.select { |path| !path.start_with?("plugins/") }
|
||||
.select { |path| path.end_with?("es6") || path.end_with?("rb") }
|
||||
|
||||
super_offenses = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user