2019-05-11 18:21:34 +08:00
|
|
|
// Copyright 2016 The Gitea Authors. All rights reserved.
|
2022-11-27 13:20:29 -05:00
|
|
|
// SPDX-License-Identifier: MIT
|
2019-05-11 18:21:34 +08: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 14:43:00 +00:00
|
|
|
// name of the forked repository
|
|
|
|
Name *string `json:"name"`
|
2019-05-11 18:21:34 +08:00
|
|
|
}
|
2025-04-07 07:00:38 +00:00
|
|
|
|
|
|
|
// SyncForkInfo information about syncing a fork
|
|
|
|
type SyncForkInfo struct {
|
|
|
|
Allowed bool `json:"allowed"`
|
|
|
|
ForkCommit string `json:"fork_commit"`
|
|
|
|
BaseCommit string `json:"base_commit"`
|
|
|
|
CommitsBehind int `json:"commits_behind"`
|
|
|
|
}
|