2019-05-11 12:21:34 +02:00
|
|
|
// Copyright 2016 The Gitea Authors. All rights reserved.
|
2022-11-27 19:20:29 +01:00
|
|
|
// SPDX-License-Identifier: MIT
|
2019-05-11 12:21:34 +02:00
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
// CreateForkOption options for creating a fork
|
|
|
|
type CreateForkOption struct {
|
|
|
|
// organization name, if forking into an organization
|
|
|
|
Organization *string `json:"organization"`
|
2021-12-24 15:43:00 +01:00
|
|
|
// name of the forked repository
|
|
|
|
Name *string `json:"name"`
|
2019-05-11 12:21:34 +02:00
|
|
|
}
|
2024-02-19 16:38:44 +01:00
|
|
|
|
|
|
|
// SyncForkInfo information about syncing a fork
|
|
|
|
type SyncForkInfo struct {
|
2024-05-03 14:57:47 +02:00
|
|
|
Allowed bool `json:"allowed"`
|
|
|
|
ForkCommit string `json:"fork_commit"`
|
|
|
|
BaseCommit string `json:"base_commit"`
|
|
|
|
CommitsBehind int `json:"commits_behind"`
|
2024-02-19 16:38:44 +01:00
|
|
|
}
|