feat: add create from template args to ProjectManager#1053
feat: add create from template args to ProjectManager#1053nejch merged 1 commit intopython-gitlab:masterfrom
Conversation
This commit adds the v4 Create project attributes necessary to create a project from a project, instance, or group level template as documented in https://docs.gitlab.com/ee/api/projects.html#create-project
nejch
left a comment
There was a problem hiding this comment.
Thanks for the PR! It looks like there are a lot of missing optional attributes, since they can be supplied in **kwargs.
Just a minor comment, but I'll let @max-wittig decide if it's really needed. It might make sense to add these in here as well for consistency:
python-gitlab/gitlab/v4/objects.py
Lines 247 to 267 in f493b73
(although the GitLab docs are a bit inconsistent there, I think the same 4 attributes apply, but some of these are EE features, so hard to test)
|
I'm currently using the cli for chatops ci jobs, as it's much less maintenance than a purpose-built script that uses the library. I know you guys have talked about removing the cli completely, so I understand if you don't want to accept the PR for those reasons. If you accept this PR, I'm certainly open to contributing more api updates. |
Ah I might have worded that strangely, it was a general comment that we have some catching up to do across the entire library to match the current GitLab API attributes ;) Sorry if that came out wrong! That's a good point about CLI usage as well, thanks. We should probably review all the missing attributes and add more as a follow-up to this PR. |
This commit adds the v4 Create project attributes necessary to create a
project from a project, instance, or group level template as documented
in https://docs.gitlab.com/ee/api/projects.html#create-project