Function
gitSource
(input: {
url: string
ref?: string
auth?: { username?: string; token: string }
depth?: number | 'full'
})
Source from the content-addressed store, hash-verified
| 26 | |
| 27 | /** Clone a git repo into the workspace. `githubRepo` is a convenience wrapper. */ |
| 28 | export function gitSource(input: { |
| 29 | url: string |
| 30 | ref?: string |
| 31 | auth?: { username?: string; token: string } |
| 32 | depth?: number | 'full' |
| 33 | }): WorkspaceSource { |
| 34 | return { type: 'git', ...input } |
| 35 | } |
| 36 | |
| 37 | export function githubRepo(input: { |
| 38 | repo: string |
Tested by
no test coverage detected