diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-08-30 20:39:23 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-08-31 22:25:26 +0200 |
commit | 770bcf71bb85c9eff13f4eb14cbd517986da9056 (patch) | |
tree | 05c0ea7b0463485a025f063da660379c5d34330f /app/controllers/projects/settings | |
parent | 6ed490401f49a8941dc7a9e3757ec4012f14ef0b (diff) | |
download | gitlab-ce-770bcf71bb85c9eff13f4eb14cbd517986da9056.tar.gz |
Form for setting project auto devops settings
Diffstat (limited to 'app/controllers/projects/settings')
-rw-r--r-- | app/controllers/projects/settings/ci_cd_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/projects/settings/ci_cd_controller.rb b/app/controllers/projects/settings/ci_cd_controller.rb index 15a2ff56b92..b029b31f9af 100644 --- a/app/controllers/projects/settings/ci_cd_controller.rb +++ b/app/controllers/projects/settings/ci_cd_controller.rb @@ -8,6 +8,7 @@ module Projects define_secret_variables define_triggers_variables define_badges_variables + define_auto_devops_variables end private @@ -42,6 +43,10 @@ module Projects badge.new(@project, @ref).metadata end end + + def define_auto_devops_variables + @auto_devops = @project.auto_devops || ProjectAutoDevops.new + end end end end |