From e9fdefd16241ebd1c7d51ce658b980a11949a740 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 23 Dec 2021 17:29:36 +0800 Subject: [PATCH 1/6] [update] Bumped version (#1284) --- .github/ISSUE_TEMPLATE/bug-report.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml index f799746..be575c6 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yaml +++ b/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -45,6 +45,7 @@ body: label: go-cqhttp 版本 description: 选择正在使用的版本 (未列出的版本为已不支持,请更新到最新版本。) options: + - v1.0.0-beta8-fix2 - v1.0.0-beta8-fix1 - v1.0.0-beta8 - v1.0.0-beta7-fix2 From 0cc0a20848d5e861014379f639cfa4052cde377c Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Sat, 22 Jan 2022 21:51:20 +0800 Subject: [PATCH 2/6] .github: update bug-report template --- .github/ISSUE_TEMPLATE/bug-report.yaml | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml index be575c6..0aacee1 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yaml +++ b/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -26,7 +26,9 @@ body: options: - label: "我已经仔细阅读上述教程和 [\"提问前需知\"](https://github.com/Mrs4s/go-cqhttp/issues/633)" required: true - - label: 我已知晓并同意,如果我不遵循以下格式提交 Issue,或者我使用的并非最新版本,或者我没有提供足够的环境信息,我的 Issue 可能会被无条件自动关闭或/并锁定。 + - label: "我已经使用 dev 分支版本测试过,问题依旧存在。" + required: true + - label: "我已经在 [Issue Tracker](……/) 中找过我要提出的问题,没有找到相同问题的ISSUE。" required: true - label: 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。) required: true @@ -39,25 +41,10 @@ body: 请根据实际使用环境修改以下信息。 # Env | go-cqhttp Version - - type: dropdown + - type: input id: env-gocq-ver attributes: label: go-cqhttp 版本 - description: 选择正在使用的版本 (未列出的版本为已不支持,请更新到最新版本。) - options: - - v1.0.0-beta8-fix2 - - 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 From b0fb02e890c9afa69026ad21e2878e3c28db7170 Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Sun, 30 Jan 2022 16:02:26 +0800 Subject: [PATCH 3/6] .github: update bug-report template --- .github/ISSUE_TEMPLATE/bug-report.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml index 0aacee1..29fc048 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yaml +++ b/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -26,9 +26,9 @@ body: options: - label: "我已经仔细阅读上述教程和 [\"提问前需知\"](https://github.com/Mrs4s/go-cqhttp/issues/633)" required: true - - label: "我已经使用 dev 分支版本测试过,问题依旧存在。" + - label: "我已经使用 [dev分支版本](https://github.com/Mrs4s/go-cqhttp/actions/workflows/ci.yml) 测试过,问题依旧存在。" required: true - - label: "我已经在 [Issue Tracker](……/) 中找过我要提出的问题,没有找到相同问题的ISSUE。" + - label: "我已经在 [Issue Tracker](https://github.com/Mrs4s/go-cqhttp/actions/workflows/ci.yml) 中找过我要提出的问题,没有找到相同问题的ISSUE。" required: true - label: 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。) required: true From f8fa906a952dff1cb111c40411d1ae8632e83326 Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Sun, 30 Jan 2022 16:04:53 +0800 Subject: [PATCH 4/6] .github: fix issue link --- .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 29fc048..1cee16c 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yaml +++ b/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -28,7 +28,7 @@ body: required: true - label: "我已经使用 [dev分支版本](https://github.com/Mrs4s/go-cqhttp/actions/workflows/ci.yml) 测试过,问题依旧存在。" required: true - - label: "我已经在 [Issue Tracker](https://github.com/Mrs4s/go-cqhttp/actions/workflows/ci.yml) 中找过我要提出的问题,没有找到相同问题的ISSUE。" + - label: "我已经在 [Issue Tracker](https://github.com/Mrs4s/go-cqhttp/issues) 中找过我要提出的问题,没有找到相同问题的ISSUE。" required: true - label: 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。) required: true From 325bd427341db837f7782d2b9a3602e97addf644 Mon Sep 17 00:00:00 2001 From: ishkong Date: Sun, 13 Feb 2022 16:07:49 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=F0=9F=93=9D=20Replace=20broken=20links=20i?= =?UTF-8?q?n=20documentation=20(#1365)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/cqhttp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cqhttp.md b/docs/cqhttp.md index e861219..71d7d20 100644 --- a/docs/cqhttp.md +++ b/docs/cqhttp.md @@ -244,7 +244,7 @@ Type: `node` | `seq` | message | 具体消息 | 用于自定义消息 | 特殊说明: **需要使用单独的API `/send_group_forward_msg` 发送,并且由于消息段较为复杂,仅支持Array形式入参。 如果引用消息和自定义消息同时出现,实际查看顺序将取消息段顺序. -另外按 [CQHTTP](https://git.io/JtxtN) 文档说明, `data` 应全为字符串, 但由于需要接收`message` 类型的消息, 所以 *仅限此Type的content字段* 支持Array套娃** +另外按 [Onebot v11](https://github.com/botuniverse/onebot-11/blob/master/message/array.md) 文档说明, `data` 应全为字符串, 但由于需要接收`message` 类型的消息, 所以 *仅限此Type的content字段* 支持Array套娃** 示例: From dfcad8082bc1d81468ca0c332b22fe7744d90148 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Thu, 24 Feb 2022 01:11:27 +0800 Subject: [PATCH 6/6] feat: check reset working dir exists --- internal/base/flag.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/base/flag.go b/internal/base/flag.go index 2794053..c6ff297 100644 --- a/internal/base/flag.go +++ b/internal/base/flag.go @@ -11,6 +11,7 @@ import ( "strings" "time" + "github.com/Mrs4s/go-cqhttp/global" log "github.com/sirupsen/logrus" "gopkg.in/yaml.v3" @@ -140,6 +141,9 @@ func ResetWorkingDir() { } } p, _ := filepath.Abs(os.Args[0]) + if !global.PathExists(p) { + log.Fatalf("重置工作目录时出现错误: 无法找到路径 %v", p) + } proc := exec.Command(p, args...) proc.Stdin = os.Stdin proc.Stdout = os.Stdout