MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / reportAProblem

Function reportAProblem

apps/desktop/src/main/diagnostics.ts:246–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244 * user can drag it onto the issue; nothing is uploaded automatically.
245 */
246export const reportAProblem = async () => {
247 await exportDiagnosticsInteractive();
248 const body = [
249 "<!-- Describe what happened and what you expected. -->",
250 "",
251 "",
252 "---",
253 "",
254 "| | |",
255 "|---|---|",
256 `| Version | ${app.getVersion()} |`,
257 `| OS | ${process.platform} ${process.arch} |`,
258 `| Run ID | ${runId} |`,
259 "",
260 "_A diagnostics zip was saved to your Downloads folder — please drag it into this issue._",
261 ].join("\n");
262 const url = new URL("https://github.com/UsefulSoftwareCo/executor/issues/new");
263 url.searchParams.set("title", "[desktop] ");
264 url.searchParams.set("body", body);
265 await shell.openExternal(url.toString());
266};
267
268/** Menu-item wrapper: surface failures in a dialog instead of dying silently. */
269export const exportDiagnosticsInteractive = async () => {

Callers 1

installApplicationMenuFunction · 0.90

Calls 3

setMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected