diff options
author | Rémy Coutable <remy@rymai.me> | 2016-07-19 15:49:54 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-07-19 15:49:54 +0300 |
commit | 61e7453e0465ceb631d3e8445429cfed7c1449d3 (patch) | |
tree | f20fabfca0a5d7cdf694f1df69c88788b3f8eb65 /config/initializers | |
parent | ad14c1bf85f716ed698e8802161de74f462a106c (diff) | |
parent | 72229c375fb3efe9dd28c0bf98f0df7696d99fc2 (diff) |
Merge branch 'manual-actions' into 'master'
Add support for manual CI actions
## What does this MR do?
This implements a `when: manual` which allows a jobs to be marked as manual actions.
Manual actions have to be explicitly executed by developers.
## What are the relevant issue numbers?
This is to solve: https://gitlab.com/gitlab-org/gitlab-ce/issues/17010
See merge request !5297
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/relative_naming_ci_namespace.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/initializers/relative_naming_ci_namespace.rb b/config/initializers/relative_naming_ci_namespace.rb new file mode 100644 index 00000000000..59abe1b9b91 --- /dev/null +++ b/config/initializers/relative_naming_ci_namespace.rb @@ -0,0 +1,16 @@ +# Description: https://coderwall.com/p/heed_q/rails-routing-and-namespaced-models +# +# This allows us to use CI ActiveRecord objects in all routes and use it: +# - [project.namespace, project, build] +# +# instead of: +# - namespace_project_build_path(project.namespace, project, build) +# +# Without that, Ci:: namespace is used for resolving routes: +# - namespace_project_ci_build_path(project.namespace, project, build) + +module Ci + def self.use_relative_model_naming? + true + end +end |