summaryrefslogtreecommitdiff
path: root/tooling/bin/find_only_allowed_files_changes
blob: c40048c66facab90bc66a9d30555333671216358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby
# frozen_string_literal: true

require_relative '../lib/tooling/find_changes'

if Tooling::FindChanges.new(from: :api).only_allowed_files_changed
  puts "Only files with extensions #{ALLOWED_FILE_TYPES.join(', ')} were changed"
  exit 0
else
  puts "Changes were made to files with extensions other than #{ALLOWED_FILE_TYPES.join(', ')}"
  exit 1
end