mirror of
https://github.com/Smaug123/gitea-repo-config
synced 2025-10-05 15:38:41 +00:00
Add ability to mirror from Gitea to GitHub (#30)
This commit is contained in:
@@ -7,6 +7,15 @@ open Newtonsoft.Json
|
||||
|
||||
type SerialisedMergeStyle = string
|
||||
|
||||
[<RequireQualifiedAccess>]
|
||||
[<Struct>]
|
||||
[<CLIMutable>]
|
||||
[<Description "Information about a repo that is to be created on Gitea without syncing from GitHub.">]
|
||||
type SerialisedPushMirror =
|
||||
{
|
||||
GitHubAddress : string
|
||||
}
|
||||
|
||||
[<RequireQualifiedAccess>]
|
||||
[<Struct>]
|
||||
[<CLIMutable>]
|
||||
@@ -55,6 +64,9 @@ type internal SerialisedNativeRepo =
|
||||
[<JsonProperty(Required = Required.DisallowNull)>]
|
||||
[<Description "either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.">]
|
||||
AllowMergeCommits : Nullable<bool>
|
||||
[<JsonProperty(Required = Required.DisallowNull)>]
|
||||
[<Description "Configure a GitHub push mirror to sync this repo to">]
|
||||
Mirror : Nullable<SerialisedPushMirror>
|
||||
}
|
||||
|
||||
[<Struct>]
|
||||
|
Reference in New Issue
Block a user