[FEATURE] Support the directory structure where Gitlab CI/CD component files are located in subdirectories of the templates
directory.
#1
Labels
enhancement
New feature or request
Feature Request
Motivation
At the moment,
labdoc
expects all Gitlab CI/CD component files to be on the root level of thetemplates
directory. However, Gitlab also provides the possibility to have the templates in subdirectories with template.yml files. For example,templates/secret-detection/template.yml
.labdoc
should handle both cases.Proposed Solution
labdoc
would have to check if thetemplates
directory contains subdirectories. If yes, the directory name should be used as component name. Thetemplate.yml
inside the directory should be parsed as usual. If no, the filename should be used as component name, then parsed as usual.The text was updated successfully, but these errors were encountered: