mirror of
https://github.com/cooperspencer/gickup.git
synced 2026-10-19 16:16:46 +00:00
Gitea lfs (#177)
* variable mirror interval * added LFS switch for gitea
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user