* Resolve target repository configuration from handler config * Combines parsing of allowed-repos and resolution of default target repo * @param {HandlerRepoConfig | import('./types/handler-factory').HandlerConfig} config - Handler configuration object * @returns {TargetRepoConfig}
(config)
| 219 | * @returns {TargetRepoConfig} |
| 220 | */ |
| 221 | function resolveTargetRepoConfig(config) { |
| 222 | const defaultTargetRepo = getDefaultTargetRepo(config); |
| 223 | const allowedRepos = parseAllowedRepos(config.allowed_repos); |
| 224 | return { |
| 225 | defaultTargetRepo, |
| 226 | allowedRepos, |
| 227 | }; |
| 228 | } |
| 229 | |
| 230 | /** |
| 231 | * Resolve and validate target repository from a message item |
no test coverage detected