Skip to content
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

Closed
2 of 7 tasks
joshbalfour opened this issue May 21, 2020 · 14 comments
Closed
2 of 7 tasks

Allow creating repository from a template via the API #11535

joshbalfour opened this issue May 21, 2020 · 14 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality

Comments

@joshbalfour
Copy link

  • Gitea version (or commit ref): 0b8b81e
  • Git version:
  • Operating system: arch
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

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 🚀

@lunny lunny added modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality labels May 21, 2020
@DanMcLaughlin
Copy link

I just came here to submit this - yes this would be great feature

@6543
Copy link
Member

6543 commented May 22, 2020

this should not be hard to acheve - If I have a few free minutes I'll look at it

@stale
Copy link

stale bot commented Jul 25, 2020

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.

@stale stale bot added the issue/stale label Jul 25, 2020
@6543
Copy link
Member

6543 commented Jul 25, 2020

ping

@stale stale bot removed the issue/stale label Jul 25, 2020
@nudelbrot0451
Copy link

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.

@stale
Copy link

stale bot commented Oct 20, 2020

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.

@stale stale bot added the issue/stale label Oct 20, 2020
@morph027
Copy link

ping ;)

@stale stale bot removed the issue/stale label Oct 20, 2020
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Dec 26, 2020
@richardolsen
Copy link

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.

@ijaureguialzo
Copy link
Contributor

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.

@richardolsen
Copy link

@ijaureguialzo Thanks so much, will d this. Most appreciated.

@6543
Copy link
Member

6543 commented Sep 29, 2021

well ... I think we can backport?

@6543
Copy link
Member

6543 commented Sep 29, 2021

I try to cherry-pick but it looks already backported!

@ijaureguialzo
Copy link
Contributor

Maybe I'm looking on the wrong place, but can't see PR #16346 on the 1.15 branch, only on master.

@6543
Copy link
Member

6543 commented Sep 30, 2021

ok ... I missed something last time it looks like -> #17195

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants