(host: string, name: string)
| 94 | } |
| 95 | |
| 96 | function parts(host: string, name: string) { |
| 97 | const pathname = name |
| 98 | .replace(/^\/+/, "") |
| 99 | .replace(/\.git\/?$/, "") |
| 100 | .replace(/\/+$/, "") |
| 101 | if (!host || !pathname) return undefined |
| 102 | return `${host.toLowerCase()}/${pathname}` |
| 103 | } |
| 104 | |
| 105 | const root = Effect.fnUntraced(function* (repo: Git.Repository) { |
| 106 | const root = (yield* git.history.rootCommits(repo))[0] |
no outgoing calls
no test coverage detected