Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tooling/bin/find_only_allowed_files_changes')
-rwxr-xr-xtooling/bin/find_only_allowed_files_changes2
1 files changed, 2 insertions, 0 deletions
diff --git a/tooling/bin/find_only_allowed_files_changes b/tooling/bin/find_only_allowed_files_changes
index c40048c66fa..1e903a4199f 100755
--- a/tooling/bin/find_only_allowed_files_changes
+++ b/tooling/bin/find_only_allowed_files_changes
@@ -3,6 +3,8 @@
require_relative '../lib/tooling/find_changes'
+ALLOWED_FILE_TYPES = ['.js', '.vue', '.md', '.scss'].freeze
+
if Tooling::FindChanges.new(from: :api).only_allowed_files_changed
puts "Only files with extensions #{ALLOWED_FILE_TYPES.join(', ')} were changed"
exit 0