Просмотр исходного кода

问题提交模板使用yml文件设置

https://docs.github.com/cn/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema
Xwite 4 лет назад
Родитель
Сommit
31c688fb8d
2 измененных файлов с 59 добавлено и 59 удалено
  1. 0 59
      .github/ISSUE_TEMPLATE/01-bugReport.md
  2. 59 0
      .github/ISSUE_TEMPLATE/01-bugReport.yml

+ 0 - 59
.github/ISSUE_TEMPLATE/01-bugReport.md

@@ -1,59 +0,0 @@
----
-name: "[BUG] 问题提交模板"
-about: 请从符号">"后面开始填写内容,填写内容可以参考 https://github.com/gedoor/legado/issues/505                    
-title: "[BUG] "
-labels: 'BUG'
-assignees: ''
----
-
-
-### 浏览器版本(web端反馈,先勾选浏览器,然后填版本号)
-* [ ] Chrome/Edge/Firefox PC
-* [ ] Chrome/Edge/Firefox/WebView Android
-* [ ] 其他浏览器,请补充
->
-
-### 机型(如Redmi K30 Pro)
->
-
-
-### 安卓版本(如Android 7.1.1)
->
-
-
-### 阅读Legdao版本(我的-关于-版本,如3.20.112220)
->
-
-
-### 网络环境(移动,联通,电信,移动宽带,联通宽带,电信宽带,等等..)
->
-
-
-### 问题描述(简要描述发生的问题)
->
-
-
-### 相关截图
->
-
-
-### 复现步骤(详细描述导致问题产生的操作步骤,如果能稳定复现)
->
-
-
-### 使用书源(填写URL或者JSON)
-<details>
- <summary>点击展开</summary>
- <pre><code>
-
-
-<pre></code>
-</details>
-<h3>日志提交(我的-关于-崩溃日志,书架-右上角-日志)</h3>
-<details>
- <summary>点击展开</summary>
- <pre><code>
-
-
-<pre></code>
-</details>

+ 59 - 0
.github/ISSUE_TEMPLATE/01-bugReport.yml

@@ -0,0 +1,59 @@
+name: BUG提交
+description: 提交使用过程中遇到的BUG
+labels: ["BUG"]
+body:
+  - type: textarea
+    attributes:
+      label: 问题描述
+      placeholder: 简要描述发生的问题
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: 复现步骤
+      placeholder: 详细描述导致问题产生的操作步骤,如果能稳定复现
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: 日志提交
+      description: 阅读日志位于我的-关于-崩溃日志、书架-右上角-日志,或者自行使用log工具抓取日志
+      placeholder: 粘贴日志内容或者上传文件或者相关截图
+
+  - type: input
+    attributes:
+      label: 阅读版本
+      placeholder: "3.22.110823"
+    validations:
+      required: true
+  - type: input
+    attributes:
+      label: Android版本
+      placeholder: "Android 12"
+    validations:
+      required: true
+  - type: input
+    attributes:
+      label: 机型
+      placeholder: "Redmi K30 Pro"
+    validations:
+      required: true
+
+  - type: textarea
+    attributes:
+      label: 其他信息
+      placeholder: |
+        如果Bug复现需要某一书源,请提交书源内容,并用```包裹
+        如果Bug涉及web服务,请提交使用的浏览器版本、网络环境
+
+  - type: checkboxes
+    attributes:
+      label: 确认
+      description: 提交issue请确保完成以下前提,否则该issue可能被忽略
+      options:
+        - label: 搜索现有issues,不存在相似或相关的issue
+          required: true
+        - label: 最新[测试版](https://kunfei.lanzoui.com/b0f810h4b)依然存在此问题
+          required: true
+        - label: 此问题和Xposed、Lsposed、Magisk、手机主题、浏览器插件等无关
+          required: true