(source: string)
| 61 | } |
| 62 | |
| 63 | const parseDefaultBranch = (source: string) => { |
| 64 | const line = source |
| 65 | .split("\n") |
| 66 | .find((line) => line.startsWith("ref: refs/heads/") && line.endsWith("\tHEAD")) |
| 67 | |
| 68 | if (!line) { |
| 69 | throw new Error("Could not resolve default branch for effect-app libs repository") |
| 70 | } |
| 71 | |
| 72 | return line.slice("ref: refs/heads/".length, -"\tHEAD".length) |
| 73 | } |
| 74 | |
| 75 | const selectVersionMentions = (mentions: Arr.NonEmptyArray<VersionMention>) => { |
| 76 | for (const packageName of packagePreference) { |
no test coverage detected
searching dependent graphs…