From aa712ed4acd4914e09b034a9bcc3c02e74e3d50f Mon Sep 17 00:00:00 2001 From: sam01101 Date: Tue, 16 Nov 2021 19:25:59 +0800 Subject: [PATCH 1/5] feat: Update bug template --- .github/ISSUE_TEMPLATE/bug--.md | 46 ------ .github/ISSUE_TEMPLATE/bug-report.yaml | 189 +++++++++++++++++++++++++ 2 files changed, 189 insertions(+), 46 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug--.md create mode 100644 .github/ISSUE_TEMPLATE/bug-report.yaml diff --git a/.github/ISSUE_TEMPLATE/bug--.md b/.github/ISSUE_TEMPLATE/bug--.md deleted file mode 100644 index aa54100..0000000 --- a/.github/ISSUE_TEMPLATE/bug--.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -name: Bug汇报 -about: 遇到了bug? 你可以在这里开始汇报(仅限软件本体问题) -title: '' -labels: bug? -assignees: '' - ---- - - - -**环境信息** - -go-cqhttp版本: -运行环境: -连接方式: -使用协议: - -**在最新的release版本中能否复现** - -**bug内容** - - -**复现方法** - diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml new file mode 100644 index 0000000..3a7eff2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -0,0 +1,189 @@ +name: 回报错误 +description: 在使用 go-cqhttp 的过程中遇到了错误 +title: '[Bug]: ' +labels: [ "bug?" ] + +body: + # User's README and agreement + - type: markdown + attributes: + value: | + ## 感谢您愿意填写错误回报! + ## 以下是一些注意事项,请务必阅读让我们能够更容易处理 + + ### ❗ | 确定没有相同问题的ISSUE已被提出. (教程: https://github.com/Mrs4s/go-cqhttp/issues/633) + ### 🌎| 请准确填写环境信息 + ### ❔ | 打开DEBUG模式复现,并提供出现问题前后至少 10 秒的完整日志内容。请自行删除日志内存在的个人信息及敏感内容。 + ### ⚠ | 如果涉及内存泄漏/CPU占用异常请打开DEBUG模式并下载pprof性能分析. + + ## 如果您不知道如何有效、精准地表述,我们建议您先阅读《提问的智慧》 + 链接: [《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md) + --- + - type: checkboxes + id: terms + attributes: + label: 请确保您已阅读以上注意事项,并勾选下方的确认框。 + options: + - label: "我已经仔细阅读上述教程和 [\"提问前需知\"](https://github.com/Mrs4s/go-cqhttp/issues/633)" + required: true + - label: 我已知晓并同意,如果我不遵循以下格式提交 Issue,或者我使用的并非最新版本,或者我没有提供足够的环境信息,我的 Issue 可能会被无条件自动关闭或/并锁定。 + required: true + - label: 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。) + required: true + + # User's data + - type: markdown + attributes: + value: | + ## 环境信息 + 请根据实际使用环境修改以下信息。 + + # Env | go-cqhttp Version + - type: dropdown + id: env-gocq-ver + attributes: + label: go-cqhttp 版本 + description: 选择正在使用的版本 (未列出的版本为已不支持,请更新到最新版本。) + options: + - v1.0.0-beta8-fix1 + - v1.0.0-beta8 + - v1.0.0-beta7-fix2 + - v1.0.0-beta7-fix1 + - v1.0.0-beta7 + - v1.0.0-beta6 + - v1.0.0-beta5 + - v1.0.0-beta4 + - v1.0.0-beta3 + - v1.0.0-beta2 + - v1.0.0-beta1 + - 更老的版本(请在下面填写) + validations: + required: true + - type: input + id: env-gocq-ver-other + attributes: + label: 旧的 go-cqhttp 版本 (请注意,我们对更低版本的 go-cqhttp 不提供完全支持;您的 Issue 有可能会被关闭。) + + # Env | VM Version + - type: dropdown + id: env-vm-ver + attributes: + label: 运行环境 + description: 选择运行 go-cqhttp 的系统版本 + options: + - Windows (64) + - Windows (32/x84) + - MacOS + - Linux + - Ubuntu + - CentOS + - ArchLinux + - UNIX (Android) + - 其它(请在下面填写) + validations: + required: true + - type: input + id: env-vm-ver-other + attributes: + label: 其它系统版本 + + # Env | VM Arch + - type: dropdown + id: env-vm-arch + attributes: + label: 运行架构 + description: (可选) 选择运行 go-cqhttp 的系统架构 + options: + - AMD + - x86 + - ARM [32] (别名:AArch32 / ARMv7) + - ARM [64] (别名:AArch64 / ARMv8) + - 其它(请在下面填写) + - type: input + id: env-vm-arch-other + attributes: + label: 其它系统架构 + + # Env | Connection type + - type: dropdown + id: env-conn-type + attributes: + label: 连接方式 + description: 选择对接机器人的连接方式 + options: + - HTTP + - WebSocket (正向) + - WebSocket (反向) + - LambdaServer + validations: + required: true + + # Env | Protocol + - type: dropdown + id: env-protocol + attributes: + label: 使用协议 + description: 选择使用的协议 + options: + - 0 | iPad + - 1 | Android Phone + - 2 | Android Watch + - 3 | MacOS + - 4 | 企点 + validations: + required: true + + # Optional | Reproduce possible + - type: checkboxes + id: reproduce-possible + attributes: + label: 在最新的 Release 版本中能否复现 + options: + - label: 能 + + # Input | Reproduce + - type: textarea + id: reproduce-steps + attributes: + label: 重现步骤 + description: | + 我们需要执行哪些操作才能让 bug 出现? + 简洁清晰的重现步骤能够帮助我们更迅速地定位问题所在。 + validations: + required: true + + # Input | Expected result + - type: textarea + id: expected + attributes: + label: 期望的结果是什么? + validations: + required: true + + # Input | Actual result + - type: textarea + id: actual + attributes: + label: 实际的结果是什么? + validations: + required: true + + # Optional | Reproduce code + - type: textarea + id: reproduce-code + attributes: + label: 简单的复现代码/链接(可选) + render: golang + + # Optional | Logging + - type: textarea + id: logging + attributes: + label: 日志记录(可选) + render: golang + + # Optional | Extra description + - type: textarea + id: extra-desc + attributes: + label: 补充说明(可选) From c6119cf9ea3802f3cc69131367d90fd9ebf96536 Mon Sep 17 00:00:00 2001 From: sam01101 Date: Thu, 18 Nov 2021 09:58:46 +0800 Subject: [PATCH 2/5] del: Removed issuebot due to issue template (#1174) --- .github/workflows/issuebot.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .github/workflows/issuebot.yml diff --git a/.github/workflows/issuebot.yml b/.github/workflows/issuebot.yml deleted file mode 100644 index b61969d..0000000 --- a/.github/workflows/issuebot.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Issuebot - -on: - issues: - types: [opened, edited] - -jobs: - new_issue: - name: Run Issuebot on new Issue - runs-on: ubuntu-latest - steps: - - uses: wfjsw/actions-gocqhttp-issue-prefilter@master From 72fec4762291f0a0de1f20ec394b502da2ab0dbc Mon Sep 17 00:00:00 2001 From: openwrt2223 <92192602+openwrt2223@users.noreply.github.com> Date: Fri, 19 Nov 2021 00:44:27 +0800 Subject: [PATCH 3/5] Update modules/config/config.go https://github.com/Mrs4s/go-cqhttp/issues/1169#issuecomment-970192648 --- modules/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/config/config.go b/modules/config/config.go index db9571c..d8707f8 100644 --- a/modules/config/config.go +++ b/modules/config/config.go @@ -296,7 +296,7 @@ const httpDefault = ` # HTTP 通信设置 post: #- url: '' # 地址 # secret: '' # 密钥 - #- url: 127.0.0.1:5701 # 地址 + #- url: http://127.0.0.1:5701/ # 地址 # secret: '' # 密钥 ` From 67fe1f661f8ea1c27f2e76195c0fc394ebf6317d Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Sat, 20 Nov 2021 20:49:40 +0800 Subject: [PATCH 4/5] template: fix typo --- .github/ISSUE_TEMPLATE/bug-report.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml index 3a7eff2..1cb2aee 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yaml +++ b/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -94,7 +94,7 @@ body: label: 运行架构 description: (可选) 选择运行 go-cqhttp 的系统架构 options: - - AMD + - AMD64 - x86 - ARM [32] (别名:AArch32 / ARMv7) - ARM [64] (别名:AArch64 / ARMv8) From fadc460f4af98c63b46064ee270ee24212d62e34 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Sat, 20 Nov 2021 20:58:51 +0800 Subject: [PATCH 5/5] update template --- .github/ISSUE_TEMPLATE/bug-report.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml index 1cb2aee..9e2f156 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yaml +++ b/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -56,13 +56,9 @@ body: - v1.0.0-beta3 - v1.0.0-beta2 - v1.0.0-beta1 - - 更老的版本(请在下面填写) + - 更老的版本 validations: required: true - - type: input - id: env-gocq-ver-other - attributes: - label: 旧的 go-cqhttp 版本 (请注意,我们对更低版本的 go-cqhttp 不提供完全支持;您的 Issue 有可能会被关闭。) # Env | VM Version - type: dropdown @@ -79,13 +75,9 @@ body: - CentOS - ArchLinux - UNIX (Android) - - 其它(请在下面填写) + - 其它(请在下方说明) validations: required: true - - type: input - id: env-vm-ver-other - attributes: - label: 其它系统版本 # Env | VM Arch - type: dropdown @@ -98,11 +90,7 @@ body: - x86 - ARM [32] (别名:AArch32 / ARMv7) - ARM [64] (别名:AArch64 / ARMv8) - - 其它(请在下面填写) - - type: input - id: env-vm-arch-other - attributes: - label: 其它系统架构 + - 其它 # Env | Connection type - type: dropdown