MCPcopy Create free account
hub / github.com/6pac/SlickGrid / parseGitRepo

Function parseGitRepo

scripts/github-release.mjs:27–36  ·  view source on GitHub ↗
(remote = 'origin', opts)

Source from the content-addressed store, hash-verified

25 * @returns
26 */
27export async function parseGitRepo(remote = 'origin', opts) {
28 const args = ['config', '--get', `remote.${remote}.url`];
29 const url = await execAsync('git', args, opts);
30
31 if (!url) {
32 throw new Error(`Git remote URL could not be found using "${remote}".`);
33 }
34
35 return parseGitUrl(url);
36}
37
38export function createReleaseClient(type) {
39 switch (type) {

Callers 2

release.mjsFile · 0.90
createReleaseFunction · 0.85

Calls 1

execAsyncFunction · 0.90

Tested by

no test coverage detected