Skip to content

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

@erNail

Description

@erNail

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions