Skip to content
代码片段 群组 项目
未验证 提交 bac4c300 编辑于 作者: Rémy Coutable's avatar Rémy Coutable
浏览文件

Only post 'Retry' message if Danger says anything


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
上级 60fcd514
No related branches found
No related tags found
无相关合并请求
...@@ -15,4 +15,8 @@ gitlab_danger.rule_names.each do |file| ...@@ -15,4 +15,8 @@ gitlab_danger.rule_names.each do |file|
danger.import_dangerfile(path: File.join('danger', 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? 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
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册