Add ability to mirror from Gitea to GitHub (#30)

This commit is contained in:
Patrick Stevens
2023-04-17 22:49:36 +01:00
committed by GitHub
parent ab88c9db23
commit cd04b1c897
7 changed files with 510 additions and 76 deletions

View File

@@ -32,6 +32,16 @@
"defaultBranch": "main",
"private": false
}
},
"new-repo-mirrored": {
"description": "A repo that's created directly on this Gitea and mirrored to GitHub",
"native": {
"defaultBranch": "main",
"private": false,
"mirror": {
"gitHubAddress": "https://github.com/MyName/repo-name-3"
}
}
}
}
}

View File

@@ -18,7 +18,7 @@ module TestSwaggerJson =
Assembly.GetExecutingAssembly().Location
|> FileInfo
|> fun fi -> fi.Directory
|> Utils.findFileAbove "Gitea/swagger.v1.json"
|> Utils.findFileAbove "Gitea.Declarative.Lib/swagger.v1.json"
task {
use client = new HttpClient ()