Commit d73ef010 authored by Rémy Coutable's avatar Rémy Coutable

Add a link to the 'danger-review' job

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent da6c493e
...@@ -7,8 +7,12 @@ danger.import_plugin('danger/plugins/helper.rb') ...@@ -7,8 +7,12 @@ danger.import_plugin('danger/plugins/helper.rb')
danger.import_plugin('danger/plugins/roulette.rb') danger.import_plugin('danger/plugins/roulette.rb')
danger.import_plugin('danger/plugins/changelog.rb') danger.import_plugin('danger/plugins/changelog.rb')
unless helper.release_automation? return if helper.release_automation?
GitlabDanger.new(helper.gitlab_helper).rule_names.each do |file|
danger.import_dangerfile(path: File.join('danger', file)) gitlab_danger = GitlabDanger.new(helper.gitlab_helper)
end
gitlab_danger.rule_names.each do |file|
danger.import_dangerfile(path: File.join('danger', file))
end end
markdown("**If needed, you can retry the [`danger-review` job](#{ENV['CI_JOB_URL']}) that generated this comment.**") if gitlab_danger.ci?
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment