From 8c35633b906b43d38df712582f91075974b7ec9d Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 5 Jul 2021 23:37:58 +0800 Subject: [PATCH] chore: add bug_report.yml --- .github/ISSUE_TEMPLATE/bug_report.en.yml | 61 ++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/bug_report.md | 54 --------------------- .github/ISSUE_TEMPLATE/bug_report.zh.yml | 61 ++++++++++++++++++++++++ 3 files changed, 122 insertions(+), 54 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.en.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.zh.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.en.yml b/.github/ISSUE_TEMPLATE/bug_report.en.yml new file mode 100644 index 000000000..ce5609235 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.en.yml @@ -0,0 +1,61 @@ +name: Bug Report +description: File a bug report +labels: [bug] +body: + - type: markdown + id: preface + attributes: + value: "Thanks for taking the time to fill out this bug report!" + - type: markdown + id: environment + attributes: + value: "## Environment" + - type: input + id: version + validations: + required: true + attributes: + label: What is version of Halo has the issue? + description: "Can be found in the about page in admin background." + - type: dropdown + id: database + validations: + required: true + attributes: + label: "What database are you using?" + description: "Can be found in the about page in admin background." + options: + - H2 + - MySQL 5.7 + - MySQL 8.x + - Other + - type: input + id: site-url + attributes: + label: "Your site address." + description: "Note your online address, if possible." + placeholder: "ex. https://halo.run" + validations: + required: false + - type: markdown + id: details + attributes: + value: "# Details" + - type: textarea + id: what-happened + attributes: + label: "What happened?" + description: "Also tell us, what did you expect to happen?" + validations: + required: true + - type: textarea + id: logs + attributes: + label: "Relevant log output" + description: "Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks." + render: shell + - type: textarea + id: additional-information + attributes: + label: "Additional information" + description: "If you have other information to note, you can fill it in here (screenshots, videos, etc.)." diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 943102b53..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -name: Bug Report -about: 事情不像预期的那样工作吗? -title: '' -labels: 'bug' -assignees: '' - ---- - - - - - -## 我的环境 - - - ---- - -## 错误日志 - - - ---- - -## 期望行为 - - - -## 当前行为 - - \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.zh.yml b/.github/ISSUE_TEMPLATE/bug_report.zh.yml new file mode 100644 index 000000000..f77f20d5c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.zh.yml @@ -0,0 +1,61 @@ +name: Bug 反馈 +description: 提交 Bug 反馈 +labels: [bug] +body: + - type: markdown + id: preface + attributes: + value: "感谢你花时间填写此错误报告!" + - type: markdown + id: environment + attributes: + value: "## 环境信息" + - type: input + id: version + validations: + required: true + attributes: + label: "是什么版本出现了此问题?" + description: "可以在管理后台的关于页面中找到。" + - type: dropdown + id: database + validations: + required: true + attributes: + label: "使用的什么数据库?" + description: "可以在管理后台的关于页面中找到。" + options: + - H2 + - MySQL 5.7 + - MySQL 8.x + - Other + - type: input + id: site-url + attributes: + label: "在线站点地址" + description: "请提供你的站点地址,如果可以的话,这可能会帮助我们更好的定位问题。" + placeholder: "ex. https://halo.run" + validations: + required: false + - type: markdown + id: details + attributes: + value: "# 详细信息" + - type: textarea + id: what-happened + attributes: + label: "发生了什么?" + description: "最好还告诉我们,你预计会发生什么。" + validations: + required: true + - type: textarea + id: logs + attributes: + label: "相关日志输出" + description: "请复制并粘贴任何相关的日志输出。 这将自动格式化为代码,因此无需反引号。" + render: shell + - type: textarea + id: additional-information + attributes: + label: "附加信息" + description: "如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。"