debian-mirror-gitlab/tooling/bin/find_only_allowed_files_changes
2023-07-09 08:55:56 +05:30

12 lines
371 B
Ruby
Executable file

#!/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