Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support the directory structure where Gitlab CI/CD component files are located in subdirectories of the templates directory. #1

Open
erNail opened this issue Jun 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@erNail
Copy link
Owner

erNail commented Jun 7, 2024

Feature Request

Motivation

At the moment, labdoc expects all Gitlab CI/CD component files to be on the root level of the templates 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 the templates directory contains subdirectories. If yes, the directory name should be used as component name. The template.yml inside the directory should be parsed as usual. If no, the filename should be used as component name, then parsed as usual.

@erNail erNail added the enhancement New feature or request label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant