Generation of .gitlab-ci doesn't work
Created by: 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 :
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.