Commit 6886287a authored by Etienne Baqué's avatar Etienne Baqué Committed by Sam Beckham

Made the CI danger check a little more performant

parent 749460ab
......@@ -9,10 +9,11 @@ def get_ci_config_files(files)
end
schema_path = 'app/assets/javascripts/editor/schema/ci.json'
ci_config_files = get_ci_config_files(all_changed_files)
has_schema_update = all_changed_files.include?(schema_path)
return if has_schema_update
return if ci_config_files.empty? || has_schema_update
ci_config_files = get_ci_config_files(all_changed_files)
return if ci_config_files.empty?
file_list = "- #{ci_config_files.map { |path| "`#{path}`" }.join("\n- ")}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment