summaryrefslogtreecommitdiff
path: root/Dangerfile
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-04 09:09:59 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-04 09:09:59 +0000
commite2c471038ab2b4f09487c1feb74520f74f834986 (patch)
tree21d8ea3ce88222c1419adaa2f79012326f29621e /Dangerfile
parent04a893be75405b262c0899bd09eb79438210e632 (diff)
downloadgitlab-ce-e2c471038ab2b4f09487c1feb74520f74f834986.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'Dangerfile')
-rw-r--r--Dangerfile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Dangerfile b/Dangerfile
index 37a45674e16..699be613f2d 100644
--- a/Dangerfile
+++ b/Dangerfile
@@ -2,14 +2,10 @@
require 'gitlab-dangerfiles'
-gitlab_dangerfiles = Gitlab::Dangerfiles::Engine.new(self)
-gitlab_dangerfiles.import_plugins
-
-return if helper.release_automation?
-
+Gitlab::Dangerfiles.import_plugins(danger)
danger.import_plugin('danger/plugins/*.rb')
-gitlab_dangerfiles.import_dangerfiles
+return if helper.release_automation?
project_helper.rule_names.each do |rule|
danger.import_dangerfile(path: File.join('danger', rule))