Add CreateRepoFromTemplate() #532

Closed
opened 2021-07-05 15:30:33 +00:00 by 6543 · 2 comments
Owner

ref https://github.com/go-gitea/gitea/pull/15958

POST /repos/{template_owner}/{template_repo}/generate
	// - name: body
	//   in: body
	//   schema:
	//     "$ref": "#/definitions/GenerateRepoOption"
	// responses:
	//   "201":
	//     "$ref": "#/responses/Repository"
	//   "403":
	//     "$ref": "#/responses/forbidden"
	//   "404":
	//     "$ref": "#/responses/notFound"
	//   "409":
	//     description: The repository with the same name already exists.
	//   "422":
	//     "$ref": "#/responses/validationError"
ref https://github.com/go-gitea/gitea/pull/15958 ```go POST /repos/{template_owner}/{template_repo}/generate // - name: body // in: body // schema: // "$ref": "#/definitions/GenerateRepoOption" // responses: // "201": // "$ref": "#/responses/Repository" // "403": // "$ref": "#/responses/forbidden" // "404": // "$ref": "#/responses/notFound" // "409": // description: The repository with the same name already exists. // "422": // "$ref": "#/responses/validationError" ```
6543 added this to the v0.15.0 milestone 2021-07-05 15:30:33 +00:00
6543 added the
kind/feature
label 2021-07-05 15:30:33 +00:00
Member

Can we call this CreateRepoFromTemplate instead of GenerateRepo?

Can we call this `CreateRepoFromTemplate` instead of `GenerateRepo`?
Author
Owner

@noerw

Can we call this CreateRepoFromTemplate instead of GenerateRepo?

Sure

@noerw >Can we call this `CreateRepoFromTemplate` instead of `GenerateRepo`? Sure
6543 changed title from Add GenerateRepo() to Add CreateRepoFromTemplate() 2021-07-08 10:49:31 +00:00
6543 added the
has/pull
label 2021-08-12 14:41:06 +00:00
6543 closed this issue 2021-08-13 16:40:48 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/go-sdk#532
No description provided.