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

Function parseRepoSlug

actions/setup/js/repo_helpers.cjs:207–213  ·  view source on GitHub ↗

* Parse owner and repo from a repository slug * @param {string} repoSlug - Repository slug in "owner/repo" format * @returns {RepoParts|null}

(repoSlug)

Source from the content-addressed store, hash-verified

205 * @returns {RepoParts|null}
206 */
207function parseRepoSlug(repoSlug) {
208 const parts = repoSlug.split("/");
209 if (parts.length !== 2 || !parts[0] || !parts[1]) {
210 return null;
211 }
212 return { owner: parts[0], repo: parts[1] };
213}
214
215/**
216 * Resolve target repository configuration from handler config

Callers 7

validateRepoFunction · 0.70
resolveAndValidateRepoFunction · 0.70
mainFunction · 0.70
updateProjectFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected