docs: update auto-created issue template

This commit is contained in:
林一二 2021-06-08 22:38:22 +08:00
parent 88d4e3e078
commit ffb3118064
2 changed files with 23 additions and 2 deletions

View file

@ -52,6 +52,7 @@ module.exports = {
'unicorn/prefer-module': 'off', 'unicorn/prefer-module': 'off',
'@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/method-signature-style': 'off', '@typescript-eslint/method-signature-style': 'off',
'unicorn/prefer-string-slice': 'off',
'unicorn/no-array-reduce': 'off', 'unicorn/no-array-reduce': 'off',
'@typescript-eslint/member-delimiter-style': [ '@typescript-eslint/member-delimiter-style': [
'warn', 'warn',

View file

@ -207,8 +207,28 @@ if (!isTest) {
user: 'tiddly-gittly', user: 'tiddly-gittly',
repo: 'TiddlyGit-Desktop', repo: 'TiddlyGit-Desktop',
template: 'bug.md', template: 'bug.md',
title: `bug: ${error.message}`, title: `bug: ${(error.message ?? '').substring(0, 100)}`,
body: `\`\`\`\n${error.stack ?? 'No error.stack'}\n\`\`\`\n\n---\n\n${debugInfo()}`, body: `## Environment
${debugInfo()}
## Description:
<!-- Describe how the bug manifests and what the behavior would be without the bug. 描述该错误是如何表现出来的,以及在正常情况下应该有什么样的行为 -->
## Steps to Reproduce:
<!-- Please explain the steps required to duplicate the issue, especially if you are able to provide a sample or a screen recording. 请解释复现该问题所需的步骤,有录屏最好。 -->
## Additional Context
\`\`\`typescript\n${error.stack ?? 'No error.stack'}\n\`\`\`
---
<!-- List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to add, use case, forum links, screenshots, OS if applicable, etc. 列出与你的问题有关的任何其他信息。报错堆栈、相关问题issue、关于如何添加的建议、使用案例、论坛链接、屏幕截图、操作系统如果适用等等。 -->
`,
}); });
}, },
}); });