Gitea lfs (#177)

* variable mirror interval

* added LFS switch for gitea
This commit is contained in:
Andreas Wachter
2023-10-04 08:09:42 +02:00
committed by GitHub
parent d2460324d8
commit f03be6607f
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -200,6 +200,7 @@ destination:
url: http(s)://url-to-gitea
createorg: true # creates an organization if it doesn't exist already, if no user is set it creates an organization with the name of the original author
mirrorinterval: 2h0m0s # interval to pull changes from source repo
lfs: false # trigger to enable lfs on gitea
visibility:
repositories: private # private, public, default: private
organizations: private # private, limited, public, default: private
+2
View File
@@ -109,6 +109,7 @@ func Backup(r types.Repo, d types.GenRepo, dry bool) bool {
Private: repovisibility,
Description: r.Description,
MirrorInterval: d.MirrorInterval,
LFS: d.LFS,
}
if r.Token == "" {
@@ -123,6 +124,7 @@ func Backup(r types.Repo, d types.GenRepo, dry bool) bool {
Private: repovisibility,
Description: r.Description,
MirrorInterval: d.MirrorInterval,
LFS: d.LFS,
}
}
+1
View File
@@ -249,6 +249,7 @@ type GenRepo struct {
Force bool `yaml:"force"`
Contributed bool `yaml:"contributed"`
MirrorInterval string `yaml:"mirrorinterval"`
LFS bool `yaml:"lfs"`
}
// Visibility struct