MCPcopy Create free account
hub / github.com/github/awesome-copilot / encodeRepoPath

Function encodeRepoPath

eng/external-plugin-intake.mjs:234–237  ·  view source on GitHub ↗
(repo)

Source from the content-addressed store, hash-verified

232}
233
234function encodeRepoPath(repo) {
235 const [owner, name] = String(repo).split("/");
236 return `${encodeURIComponent(owner ?? "")}/${encodeURIComponent(name ?? "")}`;
237}
238
239async function validateRemoteRepository(repo, { ref, sha }, errors, warnings, token) {
240 const encodedRepo = encodeRepoPath(repo);

Callers 3

validateRemoteRepositoryFunction · 0.85
buildMergedIntakeCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected