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

Function parseRepoSlug

actions/setup/js/invocation_context_helpers.cjs:16–27  ·  view source on GitHub ↗

* Parse a repository slug in owner/repo format. * @param {unknown} value * @returns {RepoRef|null}

(value)

Source from the content-addressed store, hash-verified

14 * @returns {RepoRef|null}
15 */
16function parseRepoSlug(value) {
17 if (typeof value !== "string") {
18 return null;
19 }
20
21 const trimmed = value.trim();
22 if (!trimmed) {
23 return null;
24 }
25
26 return parseSharedRepoSlug(trimmed);
27}
28
29/**
30 * Normalize a repo object into { owner, repo } shape.

Callers 1

resolveInvocationContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected