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

FR: Creating a repo from a template repo via API #15934

Closed
pat-s opened this issue May 20, 2021 · 3 comments · Fixed by #15958
Closed

FR: Creating a repo from a template repo via API #15934

pat-s opened this issue May 20, 2021 · 3 comments · Fixed by #15958
Labels
modifies/api This PR adds API routes or modifies them type/feature Completely new functionality. Can only be merged if feature freeze is not active.

Comments

@pat-s
Copy link
Member

pat-s commented May 20, 2021

As title.

Needed to implement a CLI command (tea repo create --template) as in https://gitea.com/gitea/tea/issues/362.

@pat-s pat-s added type/feature Completely new functionality. Can only be merged if feature freeze is not active. modifies/api This PR adds API routes or modifies them labels May 20, 2021
@a1012112796

This comment has been minimized.

@jolheiser jolheiser mentioned this issue May 20, 2021
15 tasks
@jolheiser
Copy link
Member

@pat-s maybe #12942 is what you need.

No, he's referring to using the API to create a repo from an existing template afaik.

@a1012112796
Copy link
Member

okay, I see. ref https://docs.github.com/en/rest/reference/repos#create-a-repository-using-a-template
I think this is a good first issue.

a1012112796 added a commit to a1012112796/gitea that referenced this issue May 23, 2021
6543 pushed a commit that referenced this issue Jul 5, 2021
* Creating a repo from a template repo via API

fix #15934
ref:
https://docs.github.com/en/rest/reference/repos#create-a-repository-using-a-template

Signed-off-by: a1012112796 <1012112796@qq.com>
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this issue Aug 10, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants