0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-10 21:54:58 +01:00
Adam Majer 7e7ac0dbf2 Add reparent option to Repository CreateFork API
Normally, a fork becomes the `child` of the source repository.
In this case, the fork becomes the new `parent` of the source
repository.

Closes: #34848
2025-09-07 18:39:50 +02:00

15 lines
446 B
Go

// Copyright 2016 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package structs
// CreateForkOption options for creating a fork
type CreateForkOption struct {
// organization name, if forking into an organization
Organization *string `json:"organization"`
// name of the forked repository
Name *string `json:"name"`
// set the target fork as the parent of the source repository
Reparent bool `json:"reparent"`
}