(remote = 'origin', opts)
| 25 | * @returns |
| 26 | */ |
| 27 | export 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 | |
| 38 | export function createReleaseClient(type) { |
| 39 | switch (type) { |
no test coverage detected