diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-20 03:12:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-20 03:12:57 +0300 |
commit | 8277a5b4ba05fe11174397c689c66cef5c06fc38 (patch) | |
tree | c4abbec1509476efbb14c040045ca163042de3bf /danger | |
parent | f46a8dbf1a0999e27dfeddd258096ef97def8d64 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'danger')
-rw-r--r-- | danger/specs/Dangerfile | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/danger/specs/Dangerfile b/danger/specs/Dangerfile index d17c17bc545..ff766cf688e 100644 --- a/danger/specs/Dangerfile +++ b/danger/specs/Dangerfile @@ -50,12 +50,8 @@ if has_ee_app_changes && has_spec_changes && !(has_app_changes || has_ee_spec_ch end # Forbidding a new file addition under `/spec/controllers` or `/ee/spec/controllers` -if helper.changes.added.files.grep(%r{^(ee/)?spec/controllers/}).any? - warn CONTROLLER_SPEC_DEPRECATION_MESSAGE -end +warn CONTROLLER_SPEC_DEPRECATION_MESSAGE if helper.changes.added.files.grep(%r{^(ee/)?spec/controllers/}).any? specs.changed_specs_files.each do |filename| - specs.add_suggestions_for_match_with_array(filename) - specs.add_suggestions_for_project_factory_usage(filename) - specs.add_suggestions_for_feature_category(filename) + specs.add_suggestions_for(filename) end |