mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-12-12 14:31:58 +01:00
20 lines
600 B
Go
20 lines
600 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"`
|
|
}
|
|
|
|
// 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"`
|
|
}
|