MCPcopy Create free account
hub / github.com/chakra-ui/panda / detectRepo

Function detectRepo

scripts/setup-trusted-publishing.mjs:203–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201}
202
203function 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
213function parseArgs(argv) {
214 const out = { dryRun: false, firstPublish: false, yes: false }

Callers 1

Calls 1

matchMethod · 0.65

Tested by

no test coverage detected