Skip to content

Generation of .gitlab-ci doesn't work  #54

@sorasful

Description

@sorasful

Hello there !

I just tried this project that looks really awesome! And I noticed that despite checking the "Gitlab-ci" box when selecting CI, it doesn't happen. The rest of the options seems to be working nicely but I got this :

image

So, when looking a little bit, I found the problem was during the declaration of the possibles values in input_models we have this :

@enum.unique
class CIType(enum.Enum):
    none = "none"
    gitlab_ci = "gitlab"
    github = "github"

But when looking at the conditional_files.json we check for gitlab_ci and not just gitlab:

    "Gitlab CI": {
        "enabled": "{{cookiecutter.ci_type == 'gitlab_ci'}}",
        "resources": [
            ".gitlab-ci.yml"
        ]
    },

And after updating it, it now works. I will submit a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions