(input: string)
| 44 | } as const |
| 45 | |
| 46 | function ref(input: string) { |
| 47 | if (input === "HEAD") return input |
| 48 | if (input.startsWith("v")) return input |
| 49 | if (input.match(/^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/)) return `v${input}` |
| 50 | return input |
| 51 | } |
| 52 | |
| 53 | async function latest() { |
| 54 | const data = await $`gh api "/repos/${repo}/releases?per_page=100"`.json() |
no outgoing calls
no test coverage detected