Skip to content

Commit 0380ce2

Browse files
authored
add back the default setting values and fix #739 (#1093)
1 parent cfdc62e commit 0380ce2

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

modules/setting/setting.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ var (
326326
RunAtStart bool
327327
Schedule string
328328
}{
329-
Schedule: "@every 10m",
329+
Enabled: true,
330+
RunAtStart: false,
331+
Schedule: "@every 10m",
330332
},
331333
RepoHealthCheck: struct {
332334
Enabled bool
@@ -335,15 +337,18 @@ var (
335337
Timeout time.Duration
336338
Args []string `delim:" "`
337339
}{
338-
Schedule: "@every 24h",
339-
Timeout: 60 * time.Second,
340-
Args: []string{},
340+
Enabled: true,
341+
RunAtStart: false,
342+
Schedule: "@every 24h",
343+
Timeout: 60 * time.Second,
344+
Args: []string{},
341345
},
342346
CheckRepoStats: struct {
343347
Enabled bool
344348
RunAtStart bool
345349
Schedule string
346350
}{
351+
Enabled: true,
347352
RunAtStart: true,
348353
Schedule: "@every 24h",
349354
},
@@ -353,6 +358,7 @@ var (
353358
Schedule string
354359
OlderThan time.Duration
355360
}{
361+
Enabled: true,
356362
RunAtStart: true,
357363
Schedule: "@every 24h",
358364
OlderThan: 24 * time.Hour,

0 commit comments

Comments
 (0)