()
| 28 | } |
| 29 | |
| 30 | async function getRepos(): Promise<string[]> { |
| 31 | const { stdout } = await execAsync(`find "${WORKSPACE}" -maxdepth 2 -name ".git" -type d 2>/dev/null`); |
| 32 | return stdout.trim().split('\n').filter(Boolean).map((d) => d.replace('/.git', '')); |
| 33 | } |
| 34 | |
| 35 | async function getRepoStatus(repoPath: string): Promise<RepoStatus> { |
| 36 | const name = repoPath.split('/').pop() || repoPath; |