diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-21 18:10:26 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-21 18:10:26 +0000 |
commit | 152f35d6bfa9178587da609d80944d4ec765219b (patch) | |
tree | d8b21a0ed11f1630b483b22610ca57dbac48a42b /app/helpers/ci | |
parent | cb3b8bd5897cb77b5a00278ab86db89c7ffa2efa (diff) | |
download | gitlab-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.rb | 4 |
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) |