(opts: {
rating: number;
comment?: string;
rawDir?: string;
yes: boolean;
doctorSummary: string;
})
| 96 | } |
| 97 | |
| 98 | async function fileGithubIssue(opts: { |
| 99 | rating: number; |
| 100 | comment?: string; |
| 101 | rawDir?: string; |
| 102 | yes: boolean; |
| 103 | doctorSummary: string; |
| 104 | }): Promise<void> { |
| 105 | const dir = resolve(opts.rawDir ?? "."); |
| 106 | if (!(await confirmFileIssue(dir, opts.yes))) return; |
| 107 | const repoPublicUrl = await publishRepro(dir); |
| 108 | const url = buildIssueUrl({ |
| 109 | repoUrl: HYPERFRAMES_REPO_URL, |
| 110 | rating: opts.rating, |
| 111 | comment: opts.comment, |
| 112 | repoPublicUrl, |
| 113 | environment: opts.doctorSummary, |
| 114 | cliVersion: VERSION, |
| 115 | }); |
| 116 | await openAndPrintIssue(url); |
| 117 | } |
| 118 | |
| 119 | export default defineCommand({ |
| 120 | meta: { name: "feedback", description: "Submit anonymous feedback about your experience" }, |
no test coverage detected