From 7aff25267d9d846abe5627682905781b8727f46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=B8=90=E7=A6=BB?= Date: Mon, 9 Sep 2024 13:45:59 +0800 Subject: [PATCH 1/3] Create web_ui.yml --- .github/ISSUE_TEMPLATE/web_ui.yml | 113 ++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/web_ui.yml diff --git a/.github/ISSUE_TEMPLATE/web_ui.yml b/.github/ISSUE_TEMPLATE/web_ui.yml new file mode 100644 index 0000000000..f433acdc61 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/web_ui.yml @@ -0,0 +1,113 @@ +name: 'WebUI' +description: '报告与 WebUI 有关的程序错误 - Report the errors that related to WebUI' + +title: '[WebUI] ' +labels: + - 'WebUI' +body: + - type: 'markdown' + attributes: + value: |- + ## 请注意 - Caution + This form only used for WebUI, for any other cases, please [click here](https://github.com/PBH-BTN/PeerBanHelper/issues/new) + 此表单**仅用于反馈WebUI相关错误**,如果是其它类型的反馈,请[点击这里](https://github.com/PBH-BTN/PeerBanHelper/issues/new)。 + 请尽可能完整且详细地填写所有表单项,以便我们以最高效率并准确的排查故障和诊断问题 + - type: 'input' + attributes: + label: 'WebUI 版本号 - Version' + description: |- + Enter the PBH version that display on WebUI footer or GUI window title. + 输入您正在使用 WebUI 的版本号,可在 WebUI 页面的底部找到 + placeholder: 'vX.X.X-(aabbccdd)' + validations: + required: true + - type: checkboxes + id: deploy-methods + attributes: + label: '部署方式 - Deploy methods' + description: |- + Check and tick checkboxes that deploy methods that you're using + 请检查并勾选你正在使用的 PeerBanHelper 部署方式 + options: + - label: "Windows .exe 安装程序 (Windows .exe Installer)" + required: false + - label: "Windows .zip 绿色部署包 (Windows .zip Portable)" + required: false + - label: "Docker" + required: false + - label: "JAR 包直接启动 (Start via .JAR directly)" + required: false + validations: + required: true + - type: checkboxes + id: downloaders + attributes: + label: '添加的下载器 - Added Downloaders' + description: |- + Check and tick checkboxes if you added those downloader(s) into your PeerBanHelper installation + 请勾选被你添加到 PeerBanHelper 中的下载器类型 + options: + - label: "qBittorrent" + required: false + - label: "BiglyBT/Azureus/Vuze" + required: false + - label: "Deluge" + required: false + - label: "Transmission" + required: false + validations: + required: true + - type: 'textarea' + attributes: + label: '问题描述 - Issue Description' + description: |- + Describe the problem you encounted. + 在此详细的描述你所遇到的问题 + validations: + required: true + - type: 'textarea' + attributes: + label: '复现步骤 - Reproduce steps' + description: |- + If you know how to reproduce the error, please type it in this text area. + 如果你清楚如何复现此故障,也欢迎告诉我们,帮助我们更快的复现它。如果它是一个偶尔才会出现的错误,请告诉我们它通常可能会在什么情况下出现。 + placeholder: |- + 1. 第一步 + 2. ... + 3. 出现 BUG! + validations: + required: true + - type: 'textarea' + attributes: + label: '截图/日志文件 - Screenshot / Logs ' + description: |- + If you have some screenshot or logs file can help us, please upload them here. + 如果你有一些截图或者日志能够更好的解释你所提出的问题,你可以在这里上传。 + placeholder: '<截图文件>' + validations: + required: false + - type: 'textarea' + attributes: + label: '额外信息 - Addition Information' + description: |- + If you have any related informations, please insert them into this text area. + 如果你还有其他觉得可能对排查和解决此问题有帮助的更多信息,可以在这里告诉我们 + placeholder: '在此填写可能有用的额外信息...' + - type: checkboxes + id: check-list + attributes: + label: 检查清单 - Check list + description: |- + Check and tick checkboxes that listed below + 检查并勾选所有需要勾选的框框 + options: + - label: "PeerBanHelper 已更新到最新版本 (I'm running the latest version of PBH that can be found in Github Relases)" + required: false + - label: "所添加的下载器已满足 README 中的前置要求(如版本号和插件)(The downloaders that I've added already satisfied the requirements (E.g install plugins/adapters))" + required: false + - label: "我已检查过 [PBH 文档](https://pbh-btn.github.io/pbh-docs/)(特别是常见问题),且即使使用了搜索也没有找到与此有关的内容 (This not a question/or the question that not listed in README's FAQ or [PBH WIKI](https://pbh-btn.github.io/pbh-docs/))" + required: false + - label: "我没有检查这个检查清单,只是闭眼选中了所有的复选框,请关闭这个 Issue (I have not read these checkboxes and therefore I just ticked them all, Please close this issue)" + required: false + - label: "这不是一个安全漏洞,它可以被安全的公开报告。若需要报告安全漏洞,请[在此报告](https://github.com/PBH-BTN/PeerBanHelper/security/advisories/new) (This not a security related issue, can be safe report in public. If you want report a security exploit, please report it [here](https://github.com/PBH-BTN/PeerBanHelper/security/advisories/new))" + required: false From 2b98558e79f81538efc63d292e31d64de8728134 Mon Sep 17 00:00:00 2001 From: Gaojianli Date: Mon, 9 Sep 2024 13:50:15 +0800 Subject: [PATCH 2/3] finish webui template --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/ISSUE_TEMPLATE/web_ui.yml | 48 +++------------------------ 2 files changed, 5 insertions(+), 45 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 8ea052dc7f..7cc887d49f 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -12,7 +12,7 @@ body: This form only used for bug report, for any other cases, please [click here](https://github.com/PBH-BTN/PeerBanHelper/issues/new) 此表单**仅用于反馈错误**,如果是其它类型的反馈,请[点击这里](https://github.com/PBH-BTN/PeerBanHelper/issues/new)。 请尽可能完整且详细地填写所有表单项,以便我们以最高效率并准确的排查故障和诊断问题 - - type: 'textarea' + - type: 'input' attributes: label: '版本号 - Version' description: |- diff --git a/.github/ISSUE_TEMPLATE/web_ui.yml b/.github/ISSUE_TEMPLATE/web_ui.yml index f433acdc61..4a5bf8fcee 100644 --- a/.github/ISSUE_TEMPLATE/web_ui.yml +++ b/.github/ISSUE_TEMPLATE/web_ui.yml @@ -21,42 +21,6 @@ body: placeholder: 'vX.X.X-(aabbccdd)' validations: required: true - - type: checkboxes - id: deploy-methods - attributes: - label: '部署方式 - Deploy methods' - description: |- - Check and tick checkboxes that deploy methods that you're using - 请检查并勾选你正在使用的 PeerBanHelper 部署方式 - options: - - label: "Windows .exe 安装程序 (Windows .exe Installer)" - required: false - - label: "Windows .zip 绿色部署包 (Windows .zip Portable)" - required: false - - label: "Docker" - required: false - - label: "JAR 包直接启动 (Start via .JAR directly)" - required: false - validations: - required: true - - type: checkboxes - id: downloaders - attributes: - label: '添加的下载器 - Added Downloaders' - description: |- - Check and tick checkboxes if you added those downloader(s) into your PeerBanHelper installation - 请勾选被你添加到 PeerBanHelper 中的下载器类型 - options: - - label: "qBittorrent" - required: false - - label: "BiglyBT/Azureus/Vuze" - required: false - - label: "Deluge" - required: false - - label: "Transmission" - required: false - validations: - required: true - type: 'textarea' attributes: label: '问题描述 - Issue Description' @@ -79,13 +43,13 @@ body: required: true - type: 'textarea' attributes: - label: '截图/日志文件 - Screenshot / Logs ' + label: '截图 - Screenshot ' description: |- - If you have some screenshot or logs file can help us, please upload them here. - 如果你有一些截图或者日志能够更好的解释你所提出的问题,你可以在这里上传。 + Please upload screenshot here. + 请上传问题截图。 placeholder: '<截图文件>' validations: - required: false + required: true - type: 'textarea' attributes: label: '额外信息 - Addition Information' @@ -103,11 +67,7 @@ body: options: - label: "PeerBanHelper 已更新到最新版本 (I'm running the latest version of PBH that can be found in Github Relases)" required: false - - label: "所添加的下载器已满足 README 中的前置要求(如版本号和插件)(The downloaders that I've added already satisfied the requirements (E.g install plugins/adapters))" - required: false - label: "我已检查过 [PBH 文档](https://pbh-btn.github.io/pbh-docs/)(特别是常见问题),且即使使用了搜索也没有找到与此有关的内容 (This not a question/or the question that not listed in README's FAQ or [PBH WIKI](https://pbh-btn.github.io/pbh-docs/))" required: false - label: "我没有检查这个检查清单,只是闭眼选中了所有的复选框,请关闭这个 Issue (I have not read these checkboxes and therefore I just ticked them all, Please close this issue)" required: false - - label: "这不是一个安全漏洞,它可以被安全的公开报告。若需要报告安全漏洞,请[在此报告](https://github.com/PBH-BTN/PeerBanHelper/security/advisories/new) (This not a security related issue, can be safe report in public. If you want report a security exploit, please report it [here](https://github.com/PBH-BTN/PeerBanHelper/security/advisories/new))" - required: false From a760e2130d5f7dc7871c73ba58853411671dcbee Mon Sep 17 00:00:00 2001 From: Gaojianli Date: Mon, 9 Sep 2024 14:00:19 +0800 Subject: [PATCH 3/3] add pr template --- .github/PULL_REQUEST_TEMPLATE/backend.yml | 6 ++++++ .github/PULL_REQUEST_TEMPLATE/others.yml | 6 ++++++ .github/PULL_REQUEST_TEMPLATE/webui.yml | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE/backend.yml create mode 100644 .github/PULL_REQUEST_TEMPLATE/others.yml create mode 100644 .github/PULL_REQUEST_TEMPLATE/webui.yml diff --git a/.github/PULL_REQUEST_TEMPLATE/backend.yml b/.github/PULL_REQUEST_TEMPLATE/backend.yml new file mode 100644 index 0000000000..11e8d0f0c1 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/backend.yml @@ -0,0 +1,6 @@ +name: 'Core' +description: 'Pull request for core service' + +title: '[BE] ' +labels: + - 'BE' \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE/others.yml b/.github/PULL_REQUEST_TEMPLATE/others.yml new file mode 100644 index 0000000000..e925dfa7f7 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/others.yml @@ -0,0 +1,6 @@ +name: 'Others' +description: 'Other changes such as Dockerfile and documentation' + +title: '[Chore] ' +labels: + - 'chore' \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE/webui.yml b/.github/PULL_REQUEST_TEMPLATE/webui.yml new file mode 100644 index 0000000000..a8be153857 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/webui.yml @@ -0,0 +1,6 @@ +name: 'WebUI' +description: 'Pull request for frontend' + +title: '[WebUI] ' +labels: + - 'WebUI' \ No newline at end of file