diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-26 12:08:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-26 12:08:22 +0000 |
commit | 1691cbe307f7698b3ee39811278990c43b6751a5 (patch) | |
tree | 2bd7d5b7143242f540a9edde92c83c791ebf8af4 /Dangerfile | |
parent | 27c6c4bf061c3a2289ce4808b1b354535994d09d (diff) | |
download | gitlab-ce-1691cbe307f7698b3ee39811278990c43b6751a5.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'Dangerfile')
-rw-r--r-- | Dangerfile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Dangerfile b/Dangerfile index c428b55f33a..cc6ebc27d4e 100644 --- a/Dangerfile +++ b/Dangerfile @@ -15,4 +15,8 @@ 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? +anything_to_post = status_report.values.any? { |data| data.any? } + +if gitlab_danger.ci? && anything_to_post + markdown("**If needed, you can retry the [`danger-review` job](#{ENV['CI_JOB_URL']}) that generated this comment.**") +end |