Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-21 06:12:55 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-21 06:12:55 +0300
commitb82d69110784e196facfbe3f8dfc8111393a5dac (patch)
treed0da7ee51cef64aa1256b16b19583d1f2b7624c5 /app/helpers/ci/pipelines_helper.rb
parent551734207fa6241cf444b1154294e9b82831ae9a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/ci/pipelines_helper.rb')
-rw-r--r--app/helpers/ci/pipelines_helper.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/helpers/ci/pipelines_helper.rb b/app/helpers/ci/pipelines_helper.rb
index 6be46b40023..6104a1256d5 100644
--- a/app/helpers/ci/pipelines_helper.rb
+++ b/app/helpers/ci/pipelines_helper.rb
@@ -67,6 +67,17 @@ module Ci
]
end
+ def has_pipeline_badges?(pipeline)
+ pipeline.child? ||
+ pipeline.latest? ||
+ pipeline.merge_train_pipeline? ||
+ pipeline.has_yaml_errors? ||
+ pipeline.failure_reason? ||
+ pipeline.auto_devops_source? ||
+ pipeline.detached_merge_request_pipeline? ||
+ pipeline.stuck?
+ end
+
private
def warning_markdown(pipeline)