Try to detect the repo slug from the gh CLI
()
| 354 | |
| 355 | /** Try to detect the repo slug from the gh CLI */ |
| 356 | function 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 | } |
no test coverage detected
searching dependent graphs…