From 7a2d4b8eed4b94f6d2d316ffbec4d373342619a6 Mon Sep 17 00:00:00 2001 From: Chilfish Date: Wed, 28 Feb 2024 16:48:21 +0800 Subject: [PATCH] chore: Add bug and feature issue templates fix(script): error message in download script --- .github/ISSUE_TEMPLATE/bug.md | 21 +++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 6 +++--- .github/ISSUE_TEMPLATE/feature.md | 13 +++++++++++++ scripts/download.mjs | 2 +- 4 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug.md create mode 100644 .github/ISSUE_TEMPLATE/feature.md diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md new file mode 100644 index 0000000..f67967d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -0,0 +1,21 @@ +--- +name: Bug 反馈 +about: 运行时遇到的 bug +labels: Bug +assignees: '' +--- + +- [ ] 我确认我已经搜索了已有的 [issues](https://github.com/Chilfish/Weibo-archiver/issues?q=is%3Aissue),没有找到类似的问题。 + +### 问题描述 + +### 复现步骤 + +### bug 截图 + +### 运行的环境 + +- 浏览器版本: +- 脚本的版本: + +### 其他信息 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 819251c..c396e00 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - - name: Questions & Discussions - url: https://github.com/Chilfish/Weibo-archiver/discussions/categories/q-a - about: Use GitHub discussions for message-board style questions and discussions. + - name: 讨论区 + url: https://github.com/Chilfish/Weibo-archiver/discussions/ + about: 讨论区 diff --git a/.github/ISSUE_TEMPLATE/feature.md b/.github/ISSUE_TEMPLATE/feature.md new file mode 100644 index 0000000..5ce39e2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature.md @@ -0,0 +1,13 @@ +--- +name: 功能建议、请求 +about: 提出一个新功能的建议 +title: '' +labels: enhancement +assignees: '' +--- + +### 功能描述 + +### 你期望的结果 + +### 其他信息 diff --git a/scripts/download.mjs b/scripts/download.mjs index 7cec914..b2d377d 100644 --- a/scripts/download.mjs +++ b/scripts/download.mjs @@ -42,7 +42,7 @@ for (const url of url_list) { await download_file(url, file_path) } catch (e) { - console.error(e) + console.error(`下载失败:${url},原因:${e.cause || e.message}`) } }