mirror of
https://github.com/go-gitea/gitea.git
synced 2025-05-06 15:40:24 +02:00
31 lines
594 B
Go
31 lines
594 B
Go
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package setting
|
|
|
|
import (
|
|
"code.gitea.io/gitea/modules/log"
|
|
)
|
|
|
|
// Bots settings
|
|
var (
|
|
Bots = struct {
|
|
Storage
|
|
Enabled bool
|
|
DefaultBotsURL string
|
|
}{
|
|
Enabled: false,
|
|
DefaultBotsURL: "https://gitea.com",
|
|
}
|
|
)
|
|
|
|
func newBuilds() {
|
|
sec := Cfg.Section("bots")
|
|
if err := sec.MapTo(&Bots); err != nil {
|
|
log.Fatal("Failed to map Builds settings: %v", err)
|
|
}
|
|
|
|
Bots.Storage = getStorage("bots_log", "", nil)
|
|
}
|