summaryrefslogtreecommitdiff
path: root/app/helpers/ci
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-21 18:10:26 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-21 18:10:26 +0000
commit152f35d6bfa9178587da609d80944d4ec765219b (patch)
treed8b21a0ed11f1630b483b22610ca57dbac48a42b /app/helpers/ci
parentcb3b8bd5897cb77b5a00278ab86db89c7ffa2efa (diff)
downloadgitlab-ce-152f35d6bfa9178587da609d80944d4ec765219b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/ci')
-rw-r--r--app/helpers/ci/pipelines_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/ci/pipelines_helper.rb b/app/helpers/ci/pipelines_helper.rb
index 309aa477108..8a6f0821dbb 100644
--- a/app/helpers/ci/pipelines_helper.rb
+++ b/app/helpers/ci/pipelines_helper.rb
@@ -26,6 +26,10 @@ module Ci
_("%{message} showing first %{warnings_displayed}") % { message: message, warnings_displayed: MAX_LIMIT }
end
+ def has_gitlab_ci?(project)
+ project.has_ci? && project.builds_enabled?
+ end
+
private
def warning_markdown(pipeline)