diff options
author | James Fargher <proglottis@gmail.com> | 2019-08-20 12:38:23 +1200 |
---|---|---|
committer | James Fargher <proglottis@gmail.com> | 2019-08-20 14:31:14 +1200 |
commit | 42da4faca442b4fcc0af2f66b1f2ad13d9d13b66 (patch) | |
tree | cb4fa87fec992c41e92c8fe153e046240a99671f /app/models/ci | |
parent | 30004bc9b77ec02cfbf30e951c8adc7978081762 (diff) | |
download | gitlab-ce-auto_devops_detect.tar.gz |
Auto-DevOps pipeline skipped bannerauto_devops_detect
Small banner to show the user why their pipeline was skipped
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/pipeline.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index 255ae64a3fd..c891cff4632 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -810,6 +810,10 @@ module Ci errors ? errors.full_messages.to_sentence : "" end + def auto_devops_unsupported? + !auto_devops_buildable.nil? && !auto_devops_buildable? + end + private def ci_yaml_from_repo |