(value: string, label = "sha")
| 54 | } |
| 55 | |
| 56 | function assertSha(value: string, label = "sha"): string { |
| 57 | const sha = value.trim(); |
| 58 | if (!/^[0-9a-f]{40}$/i.test(sha)) throw new Error(`Invalid ${label}: ${value}`); |
| 59 | return sha.toLowerCase(); |
| 60 | } |
| 61 | |
| 62 | function repoSlug(targetRepo: string): string { |
| 63 | return repositoryProfileFor(targetRepo).slug; |
no outgoing calls
no test coverage detected