(url: string)
| 82 | } |
| 83 | |
| 84 | async function openAndPrintIssue(url: string): Promise<void> { |
| 85 | if (process.stdout.isTTY) { |
| 86 | try { |
| 87 | await open(url); |
| 88 | } catch { |
| 89 | // Headless or no browser; the printed URL below is the fallback. |
| 90 | } |
| 91 | } |
| 92 | console.log(); |
| 93 | console.log(` ${c.dim("Review and submit the pre-filled issue (it is not auto-submitted):")}`); |
| 94 | console.log(` ${c.accent(url)}`); |
| 95 | console.log(); |
| 96 | } |
| 97 | |
| 98 | async function fileGithubIssue(opts: { |
| 99 | rating: number; |
no test coverage detected