mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-28 23:58:19 +00:00
RepoWhitelist -> RepoWhitelistChecker
This commit is contained in:
@@ -262,7 +262,7 @@ func NewServer(userConfig UserConfig, config Config) (*Server, error) {
|
||||
},
|
||||
},
|
||||
}
|
||||
repoWhitelist := &events.RepoWhitelist{
|
||||
repoWhitelist := &events.RepoWhitelistChecker{
|
||||
Whitelist: userConfig.RepoWhitelist,
|
||||
}
|
||||
locksController := &LocksController{
|
||||
@@ -282,7 +282,7 @@ func NewServer(userConfig UserConfig, config Config) (*Server, error) {
|
||||
GithubRequestValidator: &DefaultGithubRequestValidator{},
|
||||
GitlabRequestParserValidator: &DefaultGitlabRequestParserValidator{},
|
||||
GitlabWebHookSecret: []byte(userConfig.GitlabWebHookSecret),
|
||||
RepoWhitelist: repoWhitelist,
|
||||
RepoWhitelistChecker: repoWhitelist,
|
||||
SupportedVCSHosts: supportedVCSHosts,
|
||||
VCSClient: vcsClient,
|
||||
AtlantisGithubUser: models.User{Username: userConfig.GithubUser},
|
||||
|
||||
Reference in New Issue
Block a user