(
files: Array<{ path: string; content?: string }>,
opts?: {
owner?: string;
repo?: string;
ref?: string;
url?: string;
provider?: string;
},
)
| 66 | } |
| 67 | |
| 68 | export function makeRepoTree( |
| 69 | files: Array<{ path: string; content?: string }>, |
| 70 | opts?: { |
| 71 | owner?: string; |
| 72 | repo?: string; |
| 73 | ref?: string; |
| 74 | url?: string; |
| 75 | provider?: string; |
| 76 | }, |
| 77 | ): RepoTree { |
| 78 | return { |
| 79 | owner: opts?.owner ?? 'testorg', |
| 80 | repo: opts?.repo ?? 'testrepo', |
| 81 | ref: opts?.ref ?? 'main', |
| 82 | url: opts?.url, |
| 83 | provider: opts?.provider, |
| 84 | files: files.map((f) => ({ path: f.path, content: f.content ?? '' })), |
| 85 | }; |
| 86 | } |
no outgoing calls
no test coverage detected