-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow creating repository from a template via the API #11535
Comments
I just came here to submit this - yes this would be great feature |
this should not be hard to acheve - If I have a few free minutes I'll look at it |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
ping |
I would also be very interested in this. I need to autocreate a bunch of repositories for a students project and templates would make it possible to achive this. |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
ping ;) |
Where is this at? The /repos/{template_owner}/{template_repo}/generate API end point doesn't work as expected with my setup which is fully private, the template itself isn't private. I have had no other troubles with the API except for this. I can create a new project from using the web front end but not via the API. Have tried both with token and username and password. Otherwise loving Gitea, thank you and well done. |
Hi @richardolsen, I ran into this same issue and solved it in #16346 but it hasn't been integrated into the 1.15 branch. If you use the 1.16 development branch, the endpoint works as expected, even with private templates. @6543, could we open a new issue to backport the PR to the current stable branch? It would also close this one. |
@ijaureguialzo Thanks so much, will d this. Most appreciated. |
well ... I think we can backport? |
I try to cherry-pick but it looks already backported! |
Maybe I'm looking on the wrong place, but can't see PR #16346 on the 1.15 branch, only on master. |
ok ... I missed something last time it looks like -> #17195 |
[x]
):Description
Currently you can create a repository via the API, but not from a template, I know repo templates are a relatively new feature but it would be awesome if this could be included as a feature.
Sidenote: gitea is an awesome project by the way - big fan of this 🚀
The text was updated successfully, but these errors were encountered: