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

Function reportAProblem

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

Source from the content-addressed store, hash-verified

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

Callers 1

installApplicationMenuFunction · 0.90

Calls 3

toStringMethod · 0.80
setMethod · 0.65

Tested by

no test coverage detected