Skip to content
代码片段 群组 项目
Dangerfile 518 字节
更新 更旧
# frozen_string_literal: true
require 'gitlab-dangerfiles'
Gitlab::Dangerfiles.import_plugins(danger)
danger.import_plugin('danger/plugins/*.rb')

project_helper.rule_names.each do |rule|
  danger.import_dangerfile(path: File.join('danger', rule))
anything_to_post = status_report.values.any? { |data| data.any? }

if helper.ci? && anything_to_post
  markdown("**If needed, you can retry the [`danger-review` job](#{ENV['CI_JOB_URL']}) that generated this comment.**")
end