MCPcopy Create free account
hub / github.com/github/gh-aw / resolveTargetRepoConfig

Function resolveTargetRepoConfig

actions/setup/js/repo_helpers.cjs:221–228  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

219 * @returns {TargetRepoConfig}
220 */
221function 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

Callers 15

mainFunction · 0.85
remove_labels.cjsFile · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
assign_to_user.cjsFile · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
replace_label.cjsFile · 0.85
mainFunction · 0.85

Calls 2

getDefaultTargetRepoFunction · 0.85
parseAllowedReposFunction · 0.85

Tested by

no test coverage detected