From 9845705a4d5e421977e3e6eb570faa0d82e9b8b5 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Mon, 4 Aug 2025 13:51:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(workflows):=20[=E6=97=A0?= =?UTF-8?q?=E9=9C=80=E6=9B=B4=E6=96=B0]=20GitHub=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=9B=9E=E5=A4=8D=E5=92=8C=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20-=20patch4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/GITHUB-BOT-SETUP.md | 1 + .github/ISSUE_TEMPLATE/bug.yml | 28 ++++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature.yml | 26 ++++++++++++++++++++++++++ .github/workflows/auto-label.yml | 24 ++++++++++++++++-------- 4 files changed, 71 insertions(+), 8 deletions(-) diff --git a/.github/GITHUB-BOT-SETUP.md b/.github/GITHUB-BOT-SETUP.md index 6c01f81..3eb0d70 100644 --- a/.github/GITHUB-BOT-SETUP.md +++ b/.github/GITHUB-BOT-SETUP.md @@ -68,6 +68,7 @@ component/bilibili - 📺 - #00a1d6 - B站相关 component/tiktok - 🎵 - #ff0050 - 抖音相关 component/youtube - ▶️ - #ff0000 - YouTube相关 component/music - 🎵 - #1db954 - 音乐功能 +component/summary - 📄 - #6f42c1 - 链接总结功能 ``` #### 状态标签 diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 9c5a757..438af2e 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -42,6 +42,19 @@ body: description: 如果可以的话,上传任何关于 bug 的截图。 value: | [在这里上传图片] + - type: dropdown + id: severity + attributes: + label: 问题严重程度 + description: 这个bug对使用的影响程度? + options: + - 低 - 轻微影响,有变通方案 + - 中 - 影响正常使用,但不阻塞 + - 高 - 严重影响使用或导致崩溃 + - 紧急 - 完全无法使用,需立即修复 + default: 1 + validations: + required: true - type: dropdown id: yunzai attributes: @@ -75,5 +88,20 @@ body: - Arch - CentOS - 其他 + validations: + required: false + - type: dropdown + id: component + attributes: + label: 相关功能模块 + description: 此bug涉及哪个功能模块? + options: + - Bilibili下载 + - 抖音/TikTok下载 + - YouTube下载 + - 音乐功能 + - 链接总结 + - 其他功能 + - 不确定 validations: required: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index 4d7f037..07e7960 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -35,6 +35,32 @@ body: description: 在此处添加有关功能请求的任何其他上下文或截图。 validations: required: false + - type: dropdown + id: feature_type + attributes: + label: 功能类型 + description: 这个功能建议属于哪个类别? + options: + - 新平台支持 (如新的视频网站) + - 现有功能增强 + - 用户体验改进 + - 性能优化 + - 安全相关 + - 其他 + validations: + required: true + - type: dropdown + id: priority_suggestion + attributes: + label: 建议优先级 + description: 你认为这个功能的重要程度? + options: + - 低 - 有了更好,没有也可以 + - 中 - 比较有用的功能 + - 高 - 非常需要的功能 + default: 1 + validations: + required: true - type: checkboxes attributes: label: 意向参与贡献 diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 1530113..ea62475 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -50,11 +50,13 @@ jobs: labels.push('security'); } - // 根据关键词添加优先级标签 + // 根据关键词和表单内容添加优先级标签 if (title.includes('紧急') || title.includes('urgent') || title.includes('critical') || - body.includes('紧急') || body.includes('严重')) { + body.includes('紧急') || body.includes('严重') || body.includes('紧急 - 完全无法使用') || + body.includes('高 - 严重影响使用')) { labels.push('priority/high'); - } else if (title.includes('minor') || title.includes('小') || body.includes('小问题')) { + } else if (title.includes('minor') || title.includes('小') || body.includes('小问题') || + body.includes('低 - 轻微影响')) { labels.push('priority/low'); } else { labels.push('priority/medium'); @@ -71,19 +73,25 @@ jobs: labels.push('platform/mac'); } - // 根据组件关键词添加标签 - if (title.includes('bilibili') || title.includes('bili') || body.includes('bilibili')) { + // 根据组件关键词和表单选择添加标签 + if (title.includes('bilibili') || title.includes('bili') || body.includes('bilibili') || + body.includes('Bilibili下载')) { labels.push('component/bilibili'); } - if (title.includes('tiktok') || title.includes('抖音') || body.includes('tiktok')) { + if (title.includes('tiktok') || title.includes('抖音') || body.includes('tiktok') || + body.includes('抖音/TikTok下载')) { labels.push('component/tiktok'); } - if (title.includes('youtube') || body.includes('youtube')) { + if (title.includes('youtube') || body.includes('youtube') || body.includes('YouTube下载')) { labels.push('component/youtube'); } - if (title.includes('music') || title.includes('音乐') || body.includes('音乐')) { + if (title.includes('music') || title.includes('音乐') || body.includes('音乐') || + body.includes('音乐功能')) { labels.push('component/music'); } + if (title.includes('总结') || title.includes('summary') || body.includes('链接总结')) { + labels.push('component/summary'); + } if (labels.length > 0) { await github.rest.issues.addLabels({