新增黑名单模式和拒绝文本配置,优化仓库匹配逻辑
Some checks failed
release-nightly / release-image (push) Failing after 2s
checks / check and test (push) Has been cancelled

This commit is contained in:
2025-04-14 13:07:48 +08:00
parent 314d43d5be
commit e1732603b3
4 changed files with 16 additions and 7 deletions

View File

@ -32,6 +32,8 @@ type Runner struct {
FetchInterval time.Duration `yaml:"fetch_interval"` // FetchInterval specifies the interval duration for fetching resources.
Labels []string `yaml:"labels"` // Labels specify the labels of the runner. Labels are declared on each startup
AllowedRepos []string `yaml:"allowed_repos"` // AllowedRepos specify the repositories that the runner is allowed to run jobs for.
BlacklistMode bool `yaml:"blacklist_mode"` // BlacklistMode indicates whether the runner operates in blacklist mode.
RejectText string `yaml:"reject_text"` // RejectText specifies the text to be displayed when a job is rejected.
}
// Cache represents the configuration for caching.