8000 Gitlab Projects based on templates · python-gitlab python-gitlab · Discussion #2267 · GitHub
[go: up one dir, main page]

Skip to content

Gitlab Projects based on templates #2267

Answered by raedma
nightHawk13998 asked this question in Q&A
Discussion options

You must be logged in to vote

I faced the same problem. The Gitlab 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

Comment options

You must be logged in to vote
0 replies
Answer selected by JohnVillalovos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0