Support bot site

This commit is contained in:
Lunny Xiao authored and Jason Song committed 2022-11-24 15:38:06 +08:00
1 parent bfcc6f56f3
commit 5fc35faf17
7 files changed
+20 -23

No files matched your search

+5 -7
View File
@@ -15,12 +15,11 @@ import (
type (
// Config provides the system configuration.
Config struct {
Debug bool `envconfig:"GITEA_DEBUG"`
Trace bool `envconfig:"GITEA_TRACE"`
Client Client
Runner Runner
Platform Platform
ForgeInstance string
Debug bool `envconfig:"GITEA_DEBUG"`
Trace bool `envconfig:"GITEA_TRACE"`
Client Client
Runner Runner
Platform Platform
}
Client struct {
@@ -72,7 +71,6 @@ func FromEnviron() (Config, error) {
if runner.Address != "" {
cfg.Client.Address = runner.Address
}
cfg.ForgeInstance = runner.ForgeInstance
}
// runner config