summaryrefslogtreecommitdiff
path: root/lib/api/templates.rb
Commit message (Collapse)AuthorAgeFilesLines
* Prevent a path traversal attack on global file templatesNick Thomas2018-12-051-1/+1
| | | | | | The API permits path traversal characters like '../' to be passed down to the template finder. Detect these requests and cause them to fail with a 500 response code.
* Backport project template API to CENick Thomas2018-10-051-5/+4
|
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* Allow the TemplateFinder to handle licenses as wellNick Thomas2018-09-051-3/+3
|
* Convert global templates to vendored templates via a ::TemplateFinderNick Thomas2018-09-051-6/+3
|
* Convert the license template API to use the new LicenseTemplateFinderNick Thomas2018-08-151-30/+14
|
* Enable RuboCop Style/RegexpLiteralTakuya Noguchi2018-02-011-4/+4
|
* Remove 'Repo' prefix from API entitesVitaliy @blackst0ne Klachkov2017-10-051-4/+4
|
* Upgrade grape to 1.0Zeger-Jan van de Weg2017-08-161-3/+3
| | | | | Main feature was the deprication of the Hashie stuff, so the access by calling keys as method is gone now.
* Backport API to v3paginate-all-the-thingsRobert Schilling2017-02-171-1/+1
|
* Paginate all endpoints that return an arrayRobert Schilling2017-02-161-2/+10
|
* Remove deprecated templates endpoints in V422818-licence-gitignore-and-yml-endpoints-removalOswaldo Ferreira2017-02-131-56/+39
|
* Update templates.rbKamil TrzciƄski2016-12-161-1/+1
|
* Refactored JSLuke "Jared" Bennett2016-11-081-1/+4
| | | | Added spec
* Allow to use Dockerfile templatesKamil Trzcinski2016-11-081-5/+6
|
* Create a new /templates API namespaceThomas Balthazar2016-10-121-24/+100
| | | | | | The /licenses, /gitignores and /gitlab_ci_ymls endpoints are now also available under a new /templates namespace. Old endpoints will be deprecated when GitLab 9.0.0 is released.
* Load issues and merge requests templates from repositoryFelipe Artur2016-08-161-11/+15
|
* fixup! override content methodZ.J. van de Weg2016-06-201-5/+1
|
* Incorporate reviewZ.J. van de Weg2016-06-201-1/+5
|
* Implement backend gitlab ci dropdownZ.J. van de Weg2016-06-201-1/+2
| | | | | | | This commit builds on the groundwork in ee008e300b1ec0abcc90e6a30816ec0754cea0dd, which refactored the backend so the same code could be used for new dropdowns. In this commit its used for templates for the `.gitlab-ci.yml` files.
* Refactor Gitlab::GitignoresZJ van de Weg2016-06-201-0/+35