diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2016-06-21 10:56:41 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2016-06-21 10:56:41 +0000 |
commit | 0d287b06a6fa7a373df03378f9f1a048e5890a4f (patch) | |
tree | 271a95f91752727a3ee350e4f47f82e9f6355357 /lib/api/gitignores.rb | |
parent | f90c8c624d2bf0391a25ae07b1516d11948e1a81 (diff) | |
parent | 35383f33acaae6b286c203005b0410388a3bcca0 (diff) | |
download | gitlab-ce-0d287b06a6fa7a373df03378f9f1a048e5890a4f.tar.gz |
Merge branch '17521-gitlab-ci-yml-templates' into 'master'
GitLab CI Yaml template dropdown
## What does this MR do?
Make it possible to select a dropdown for an easy start with GitLab CI.
## What are the relevant issue numbers?
Closes #17521
## TODO
- [ ] Backend
- [x] CHANGELOG item
- [x] Fix rubocop failure
- [x] API Support
- [x] New tests
- [x] Add disclaimer to the top of the gitlab-ci.yml
- [ ] Frontend
- [x] New tests
See merge request !4411
Diffstat (limited to 'lib/api/gitignores.rb')
-rw-r--r-- | lib/api/gitignores.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/api/gitignores.rb b/lib/api/gitignores.rb deleted file mode 100644 index 270c9501dd2..00000000000 --- a/lib/api/gitignores.rb +++ /dev/null @@ -1,29 +0,0 @@ -module API - class Gitignores < Grape::API - - # Get the list of the available gitignore templates - # - # Example Request: - # GET /gitignores - get 'gitignores' do - present Gitlab::Gitignore.all, with: Entities::GitignoresList - end - - # Get the text for a specific gitignore - # - # Parameters: - # name (required) - The name of a license - # - # Example Request: - # GET /gitignores/Elixir - # - get 'gitignores/:name' do - required_attributes! [:name] - - gitignore = Gitlab::Gitignore.find(params[:name]) - not_found!('.gitignore') unless gitignore - - present gitignore, with: Entities::Gitignore - end - end -end |