diff options
Diffstat (limited to 'danger/bulk_database_actions/Dangerfile')
-rw-r--r-- | danger/bulk_database_actions/Dangerfile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/danger/bulk_database_actions/Dangerfile b/danger/bulk_database_actions/Dangerfile index a8cc7bea000..5b28ceca029 100644 --- a/danger/bulk_database_actions/Dangerfile +++ b/danger/bulk_database_actions/Dangerfile @@ -1,3 +1,8 @@ # frozen_string_literal: true -bulk_database_actions.add_comment_for_bulk_database_action_method_usage +helper.all_changed_files.each do |filename| + next unless filename.end_with?('.rb') + next if filename.start_with?('spec/', 'ee/spec/', 'jh/spec/') + + bulk_database_actions.add_suggestions_for(filename) +end |