Добавление логирования

Добавления возможности использования github токена
This commit is contained in:
2025-10-04 00:36:48 +03:00
parent b826188019
commit 72131fc7ac
8 changed files with 153 additions and 21 deletions

View File

@@ -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"`
}