MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / fileGithubIssue

Function fileGithubIssue

packages/cli/src/commands/feedback.ts:98–117  ·  view source on GitHub ↗
(opts: {
  rating: number;
  comment?: string;
  rawDir?: string;
  yes: boolean;
  doctorSummary: string;
})

Source from the content-addressed store, hash-verified

96}
97
98async 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
119export default defineCommand({
120 meta: { name: "feedback", description: "Submit anonymous feedback about your experience" },

Callers 1

runFunction · 0.85

Calls 5

resolveFunction · 0.85
confirmFileIssueFunction · 0.85
publishReproFunction · 0.85
buildIssueUrlFunction · 0.85
openAndPrintIssueFunction · 0.85

Tested by

no test coverage detected