debian-mirror-gitlab/tooling/bin/find_only_allowed_files_changes

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
371 B
Text
Raw Normal View History

2023-07-09 08:55:56 +05:30
#!/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