summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-03-28 08:01:33 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-03-28 08:01:33 +0000
commit51d92fb568f9064f35c668e7f6abbbf0f8ad00bd (patch)
treecae9687af29860de6ee1999f0e078ad1ca48ee1a /config
parent949d1b37e740ae28e1a3eaf41ce10388617385d6 (diff)
parentbab176008b62dddc00db25517c427cbe252bc211 (diff)
downloadgitlab-ce-51d92fb568f9064f35c668e7f6abbbf0f8ad00bd.tar.gz
Merge branch '43603-ci-lint-support' into 'master'
Resolve "/ci/lint should support include keyword in config file" Closes #43603 See merge request gitlab-org/gitlab-ce!17729
Diffstat (limited to 'config')
-rw-r--r--config/routes/ci.rb2
-rw-r--r--config/routes/project.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/config/routes/ci.rb b/config/routes/ci.rb
index 60c1724bc05..ebd321ed097 100644
--- a/config/routes/ci.rb
+++ b/config/routes/ci.rb
@@ -1,5 +1,5 @@
namespace :ci do
- resource :lint, only: [:show, :create]
+ resource :lint, only: :show
root to: redirect('')
end
diff --git a/config/routes/project.rb b/config/routes/project.rb
index f50b9aded8d..48ba8ef06f9 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -280,6 +280,10 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
post :keep
end
end
+
+ namespace :ci do
+ resource :lint, only: [:show, :create]
+ end
end
draw :legacy_builds