From 9365d89d00a33f8ea393ae8dac6db55dc976a2e9 Mon Sep 17 00:00:00 2001 From: tiddlygit-test Date: Sat, 17 Apr 2021 22:28:28 +0800 Subject: [PATCH] feat: better bug report --- .github/ISSUE_TEMPLATE/bug.md | 1 - src/main.ts | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md index 69af0185..a0b37441 100644 --- a/.github/ISSUE_TEMPLATE/bug.md +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -8,7 +8,6 @@ title: 'bug: ' -Version v Electron Version: diff --git a/src/main.ts b/src/main.ts index 9131ca85..1be982b6 100755 --- a/src/main.ts +++ b/src/main.ts @@ -206,6 +206,8 @@ unhandled({ openNewGitHubIssue({ user: 'tiddly-gittly', repo: 'TiddlyGit-Desktop', + template: 'bug.md', + title: `bug: ${error.message}`, body: `\`\`\`\n${error.stack ?? 'No error.stack'}\n\`\`\`\n\n---\n\n${debugInfo()}`, }); },