- Notifications
You must be signed in to change notification settings - Fork673
Gitlab Projects based on templates#2267
-
Hi, I am new to using this python wrapper and can't seem to figure out to create a project and have it use a custom template. I know the API supports using '--use-custom-template' but cant seem to figure out the correct call using this wrapper. If anyone has any suggestions that would be great.
|
BetaWas this translation helpful?Give feedback.
All reactions
I faced the same problem. TheGitlab API description says there is the option--use_custom_template
as well as--group-with-project-templates-id
and--template-project-id
so I tried my luck with
project = gitlab.projects.create({'name': 'name', 'namespace_id': subgroup.id, 'use_custom_template': True, 'group_with_project_templates_id': 42540,'template_project_id': 30982})
and this worked fine.
Replies: 1 comment
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I faced the same problem. TheGitlab API description says there is the option
and this worked fine. |
BetaWas this translation helpful?Give feedback.