Добавление логирования
Добавления возможности использования github токена
This commit is contained in:
@@ -23,6 +23,7 @@ type Config struct {
|
||||
Repositories map[string]GitRepo `toml:"repositories"`
|
||||
Webhook Webhook `toml:"webhook" envPrefix:"WEBHOOK_"`
|
||||
Logging Logging `toml:"logging" envPrefix:"LOGGING_"`
|
||||
GitHub GitHub `toml:"github" envPrefix:"GITHUB_"`
|
||||
}
|
||||
|
||||
type GitRepo struct {
|
||||
@@ -50,3 +51,7 @@ type Logging struct {
|
||||
MaxSize int64 `toml:"max_size" env:"MAX_SIZE"`
|
||||
EnableFile bool `toml:"enable_file" env:"ENABLE_FILE"`
|
||||
}
|
||||
|
||||
type GitHub struct {
|
||||
Token string `toml:"token" env:"TOKEN"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user