mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 05:06:46 +10:00
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
23 lines
379 B
Ruby
23 lines
379 B
Ruby
module Gitlab
|
|
module Template
|
|
class Gitignore < BaseTemplate
|
|
class << self
|
|
def extension
|
|
'.gitignore'
|
|
end
|
|
|
|
def categories
|
|
{
|
|
"Languages" => '',
|
|
"Global" => 'Global'
|
|
}
|
|
end
|
|
|
|
def base_dir
|
|
Rails.root.join('vendor/gitignore')
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|