summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorJames Fargher <proglottis@gmail.com>2019-07-18 15:45:12 +1200
committerJames Fargher <proglottis@gmail.com>2019-07-19 09:23:07 +1200
commit01431ae3076370bec1c014e326cdb20b47ae55b1 (patch)
treede042beee18387364ff8420322b31952822b35c1 /app/models/project.rb
parent34f5eb1b93b5c1e7d8ed8d578d8b94cd33d2dca3 (diff)
downloadgitlab-ce-auto_devops_detect2.tar.gz
Initial detection of Auto-DevOps buildable projectsauto_devops_detect2
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 2906aca75fc..e3e177c97e2 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -665,10 +665,14 @@ class Project < ApplicationRecord
if auto_devops&.enabled.nil?
has_auto_devops_implicitly_enabled?
else
- auto_devops.enabled?
+ has_auto_devops_explicitly_enabled?
end
end
+ def has_auto_devops_explicitly_enabled?
+ auto_devops&.enabled?
+ end
+
def has_auto_devops_implicitly_enabled?
auto_devops_config = first_auto_devops_config