diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-25 12:08:23 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-25 12:08:23 +0000 |
commit | b5249f2d99206a72459bc5e2bf2aeb2f06ee36f3 (patch) | |
tree | 167e5cc20708e73a24d4810211fd5d15baaf8d77 /Dangerfile | |
parent | 03c3f9f501301f1da34bfec229348f8ac1b7c40d (diff) | |
download | gitlab-ce-b5249f2d99206a72459bc5e2bf2aeb2f06ee36f3.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'Dangerfile')
-rw-r--r-- | Dangerfile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Dangerfile b/Dangerfile index 7879c14b31e..c428b55f33a 100644 --- a/Dangerfile +++ b/Dangerfile @@ -7,8 +7,12 @@ danger.import_plugin('danger/plugins/helper.rb') danger.import_plugin('danger/plugins/roulette.rb') danger.import_plugin('danger/plugins/changelog.rb') -unless helper.release_automation? - GitlabDanger.new(helper.gitlab_helper).rule_names.each do |file| - danger.import_dangerfile(path: File.join('danger', file)) - end +return if helper.release_automation? + +gitlab_danger = GitlabDanger.new(helper.gitlab_helper) + +gitlab_danger.rule_names.each do |file| + danger.import_dangerfile(path: File.join('danger', file)) end + +markdown("**If needed, you can retry the [`danger-review` job](#{ENV['CI_JOB_URL']}) that generated this comment.**") if gitlab_danger.ci? |