MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / detectRepo

Function detectRepo

packages/bumpy/src/core/changelog-github.ts:356–363  ·  view source on GitHub ↗

Try to detect the repo slug from the gh CLI

()

Source from the content-addressed store, hash-verified

354
355/** Try to detect the repo slug from the gh CLI */
356function detectRepo(): string | undefined {
357 try {
358 const result = tryRunArgs(['gh', 'repo', 'view', '--json', 'nameWithOwner', '--jq', '.nameWithOwner']);
359 return result?.trim() || undefined;
360 } catch {
361 return undefined;
362 }
363}

Callers 1

createGithubFormatterFunction · 0.70

Calls 1

tryRunArgsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…