mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-10 21:54:58 +01:00
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
15 lines
446 B
Go
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"`
|
|
}
|