RepoWhitelist -> RepoWhitelistChecker

This commit is contained in:
Luke Kysow
2018-06-20 15:20:10 +01:00
parent 0c966d50e9
commit d359131a29
7 changed files with 21 additions and 21 deletions

View File

@@ -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},