From 9173aedfb00ea6b8fb3b78486e4ec1156d1302ad Mon Sep 17 00:00:00 2001 From: ZeroCal Su <3146312184@qq.com> Date: Sun, 6 Oct 2024 14:59:44 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B7=BB=E5=8A=A0=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/bug_report.yml | 84 ++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/suggestions.yml | 40 ++++++++++++ .github/workflows/stale.yml | 20 ++++++ 3 files changed, 144 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/suggestions.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..dd5ddba --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,84 @@ +name: Bug Report +description: '此表单旨在收集您在使用本插件过程中所遇到的问题信息' +title: '[Bug]: ' +labels: + - bug +body: + - type: checkboxes + id: important-steps + attributes: + label: 重要步骤 + description: 在提交新的 Bug 反馈之前,请务必确保以下事项均已完成 + options: + - label: >- + 我已核实插件已更新至最新版本,并确认该问题在最新版中依然存在 + required: true + - label: >- + 我已仔细阅读 README 文件,并尝试了所有提供的解决方案 + required: true + - label: >- + 我已搜索现有的 Issues,并未找到与当前问题相似或相同的反馈 + required: true + - type: input + id: plugin-version + attributes: + label: 插件版本 + description: 您可以通过在插件文件夹中运行 `npm pkg get version` 命令来查看插件版本 + placeholder: 1.4.5 + validations: + required: true + - type: input + id: adapter-name + attributes: + label: 协议端名称 + description: 请提供您使用的协议端名称 + placeholder: ICQQ v1.2.6 + validations: + required: true + - type: textarea + id: description + attributes: + label: 问题描述 + description: 请详细描述您所遇到的问题,包括相关的上下文信息 + placeholder: | + 使用「~安可面板」命令时,机器人返回「业务异常」的提示信息 + validations: + required: true + - type: textarea + id: expected + attributes: + label: 期望结果 + description: 请描述您预期得到的结果或行为 + placeholder: | + 期望在使用「~安可面板」命令时,机器人能够查询指定角色的面板信息,并返回渲染后的面板图片 + validations: + required: true + - type: textarea + id: steps + attributes: + label: 复现步骤 + description: 请提供详细的步骤,以便他人能够复现您所遇到的问题 + placeholder: | + 1. 使用「~登录」命令获取在线登录链接 + 2. 打开在线登录链接并登录库街区账号 + 3. 输入「~安可面板」命令 + validations: + required: true + - type: input + id: start-logs + attributes: + label: 启动日志 + description: > + 请将机器人启动时的日志内容上传至 [pastebin](https://pastebin.com/) 网站,并将生成的链接粘贴在此处。请勿直接粘贴日志内容 + placeholder: 'https://pastebin.com/.....' + validations: + required: true + - type: input + id: logs + attributes: + label: 问题日志 + description: > + 请将发生问题时的日志内容上传至 [pastebin](https://pastebin.com/) 网站,并将生成的链接粘贴在此处。请勿直接粘贴日志内容 + placeholder: 'https://pastebin.com/.....' + validations: + required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/suggestions.yml b/.github/ISSUE_TEMPLATE/suggestions.yml new file mode 100644 index 0000000..56efae0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/suggestions.yml @@ -0,0 +1,40 @@ +name: Suggestion +description: '本表单旨在收集您对本插件的建议与意见' +title: '[Suggestion]: ' +labels: + - suggestion +body: + - type: checkboxes + id: important-steps + attributes: + label: 重要步骤 + description: 在提交建议之前,请务必确保以下事项均已完成 + options: + - label: >- + 我已确认当前没有其他与此建议相似的反馈已被提交 + required: true + - type: input + id: plugin-version + attributes: + label: 插件版本 + description: 您可以通过在插件文件夹中运行 `npm pkg get version` 命令来查看插件版本 + placeholder: 1.4.5 + validations: + required: true + - type: textarea + id: description + attributes: + label: 建议描述 + description: 请清晰且详细地描述您希望提出的具体建议,包括功能、用途 + placeholder: 我希望增加「~全部签到」命令,能够一次性签到所有已登录的用户 + validations: + required: true + - type: textarea + id: why + attributes: + label: 建议理由 + description: 请详细说明您认为此建议潜在的好处和对用户体验的影响 + placeholder: | + 1. 插件在进行批量签到时,容易发生中断,希望能够实现补签功能,确保没有用户遗漏签到 + validations: + required: true \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..841a098 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,20 @@ +name: 'Close stale issues and PRs' +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days.' + stale-pr-message: 'This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days.' + close-issue-message: 'This issue was closed because it has been stalled for 3 days with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 3 days with no activity.' + days-before-issue-stale: 7 + days-before-pr-stale: 7 + days-before-issue-close: 3 + days-before-pr-close: 3