()
| 201 | } |
| 202 | |
| 203 | function detectRepo() { |
| 204 | try { |
| 205 | const url = execFileSync('git', ['remote', 'get-url', 'origin'], { cwd: ROOT, encoding: 'utf8' }).trim() |
| 206 | const m = url.match(/github\.com[/:]([^/]+\/[^/]+?)(?:\.git)?$/) |
| 207 | return m ? m[1] : null |
| 208 | } catch { |
| 209 | return null |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | function parseArgs(argv) { |
| 214 | const out = { dryRun: false, firstPublish: false, yes: false } |
no test coverage detected