(repo: string, localPath: string)
| 89 | } |
| 90 | |
| 91 | cloneRepo(repo: string, localPath: string): void { |
| 92 | try { |
| 93 | gitcodeRepoClone(repo, localPath); |
| 94 | } catch (e) { |
| 95 | if (e instanceof GitCodeRepoNotFoundError) { |
| 96 | throw new RepoNotFoundError(repo); |
| 97 | } |
| 98 | throw e; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | async createRepo(owner: string, repo: string): Promise<void> { |
| 103 | await gitcodeCreateRepo(owner, repo); |
nothing calls this directly
no test coverage detected