mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🔧 chore(workflows): [无需更新] GitHub 添加自动回复和标签功能 - patch4
This commit is contained in:
parent
17493bdb1b
commit
9845705a4d
1
.github/GITHUB-BOT-SETUP.md
vendored
1
.github/GITHUB-BOT-SETUP.md
vendored
@ -68,6 +68,7 @@ component/bilibili - 📺 - #00a1d6 - B站相关
|
|||||||
component/tiktok - 🎵 - #ff0050 - 抖音相关
|
component/tiktok - 🎵 - #ff0050 - 抖音相关
|
||||||
component/youtube - ▶️ - #ff0000 - YouTube相关
|
component/youtube - ▶️ - #ff0000 - YouTube相关
|
||||||
component/music - 🎵 - #1db954 - 音乐功能
|
component/music - 🎵 - #1db954 - 音乐功能
|
||||||
|
component/summary - 📄 - #6f42c1 - 链接总结功能
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 状态标签
|
#### 状态标签
|
||||||
|
28
.github/ISSUE_TEMPLATE/bug.yml
vendored
28
.github/ISSUE_TEMPLATE/bug.yml
vendored
@ -42,6 +42,19 @@ body:
|
|||||||
description: 如果可以的话,上传任何关于 bug 的截图。
|
description: 如果可以的话,上传任何关于 bug 的截图。
|
||||||
value: |
|
value: |
|
||||||
[在这里上传图片]
|
[在这里上传图片]
|
||||||
|
- type: dropdown
|
||||||
|
id: severity
|
||||||
|
attributes:
|
||||||
|
label: 问题严重程度
|
||||||
|
description: 这个bug对使用的影响程度?
|
||||||
|
options:
|
||||||
|
- 低 - 轻微影响,有变通方案
|
||||||
|
- 中 - 影响正常使用,但不阻塞
|
||||||
|
- 高 - 严重影响使用或导致崩溃
|
||||||
|
- 紧急 - 完全无法使用,需立即修复
|
||||||
|
default: 1
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: yunzai
|
id: yunzai
|
||||||
attributes:
|
attributes:
|
||||||
@ -77,3 +90,18 @@ body:
|
|||||||
- 其他
|
- 其他
|
||||||
validations:
|
validations:
|
||||||
required: false
|
required: false
|
||||||
|
- type: dropdown
|
||||||
|
id: component
|
||||||
|
attributes:
|
||||||
|
label: 相关功能模块
|
||||||
|
description: 此bug涉及哪个功能模块?
|
||||||
|
options:
|
||||||
|
- Bilibili下载
|
||||||
|
- 抖音/TikTok下载
|
||||||
|
- YouTube下载
|
||||||
|
- 音乐功能
|
||||||
|
- 链接总结
|
||||||
|
- 其他功能
|
||||||
|
- 不确定
|
||||||
|
validations:
|
||||||
|
required: false
|
26
.github/ISSUE_TEMPLATE/feature.yml
vendored
26
.github/ISSUE_TEMPLATE/feature.yml
vendored
@ -35,6 +35,32 @@ body:
|
|||||||
description: 在此处添加有关功能请求的任何其他上下文或截图。
|
description: 在此处添加有关功能请求的任何其他上下文或截图。
|
||||||
validations:
|
validations:
|
||||||
required: false
|
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
|
- type: checkboxes
|
||||||
attributes:
|
attributes:
|
||||||
label: 意向参与贡献
|
label: 意向参与贡献
|
||||||
|
24
.github/workflows/auto-label.yml
vendored
24
.github/workflows/auto-label.yml
vendored
@ -50,11 +50,13 @@ jobs:
|
|||||||
labels.push('security');
|
labels.push('security');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 根据关键词添加优先级标签
|
// 根据关键词和表单内容添加优先级标签
|
||||||
if (title.includes('紧急') || title.includes('urgent') || title.includes('critical') ||
|
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');
|
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');
|
labels.push('priority/low');
|
||||||
} else {
|
} else {
|
||||||
labels.push('priority/medium');
|
labels.push('priority/medium');
|
||||||
@ -71,19 +73,25 @@ jobs:
|
|||||||
labels.push('platform/mac');
|
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');
|
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');
|
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');
|
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');
|
labels.push('component/music');
|
||||||
}
|
}
|
||||||
|
if (title.includes('总结') || title.includes('summary') || body.includes('链接总结')) {
|
||||||
|
labels.push('component/summary');
|
||||||
|
}
|
||||||
|
|
||||||
if (labels.length > 0) {
|
if (labels.length > 0) {
|
||||||
await github.rest.issues.addLabels({
|
await github.rest.issues.addLabels({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user