aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 7706ee3e95..9787e09280 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -365,6 +365,12 @@ var (
Schedule string
UpdateExisting bool
} `ini:"cron.sync_external_users"`
+ DeletedBranchesCleanup struct {
+ Enabled bool
+ RunAtStart bool
+ Schedule string
+ OlderThan time.Duration
+ } `ini:"cron.deleted_branches_cleanup"`
}{
UpdateMirror: struct {
Enabled bool
@@ -419,6 +425,17 @@ var (
Schedule: "@every 24h",
UpdateExisting: true,
},
+ DeletedBranchesCleanup: struct {
+ Enabled bool
+ RunAtStart bool
+ Schedule string
+ OlderThan time.Duration
+ }{
+ Enabled: true,
+ RunAtStart: true,
+ Schedule: "@every 24h",
+ OlderThan: 24 * time.Hour,
+ },
}
// Git settings