blob: 5d50e709f14333e9acc89ec47005e8a2b4d98c4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# frozen_string_literal: true
require 'gitlab-dangerfiles'
GITALY_TEAM = %w[
8bitlife
avar
chriscool
pks-t
proglottis
samihiltunen
toon
]
Gitlab::Dangerfiles.for_project(self) do |dangerfiles|
dangerfiles.import_defaults
danger.import_plugin('danger/plugins/*.rb')
Dir.each_child('danger/rules') do |rule|
danger.import_dangerfile(path: "danger/rules/#{rule}")
end
anything_to_post = status_report.values.any?(&: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
end
# vim: ft=ruby
|