XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/bilibili-API-collect

chore: 拆分 issue template 方便自动添加 labels

8a355f4
z0z0r4 <z0z0r4@outlook.com>
提交于

代码差异

3 个文件 +100 -9
Renamed .github/ISSUE_TEMPLATE/1-add-request.yml +11 -9
@@ -1,19 +1,21 @@
1 name: "新增/更新请求"
2 description: "请求添加/补充/更新文档中的 API 定义"
3 title: "[新增/更新请求] <title>"
1 name: "新增请求"
2 description: "请求添加文档中未收录的 API 定义"
3 title: "[新增请求] <title>"
4 labels: ["新增/Add"]
4 5 body:
5 6 - type: checkboxes
6 7 id: reminders
7 8 attributes:
8 9 label: "提交前请确认"
9 10 options:
10 - label: "我已检索仓库中文档,不包含所提及内容,或所提及内容在本仓库中存在错误,且 Issues、Pull Requests 中无相关提交"
11 - label: "我已检索仓库中文档,确认不包含所提及内容,且 Issues、Pull Requests 中无相关提交"
11 12 required: true
12 13 - type: dropdown
13 14 id: source
14 15 attributes:
15 16 label: "API 来源"
16 17 description: "该 API 在何平台中使用"
18 multiple: true
17 19 options:
18 20 - "Web 端(含 h5)"
19 21 - "PC 客户端(Electron)"
@@ -38,17 +40,17 @@ body:
38 40 validations:
39 41 required: true
40 42 - type: input
41 id: adderss
43 id: address
42 44 attributes:
43 45 label: "API 地址"
44 description: "REST 的 url,或 gRPC 的包名+服务名,更新时可为原文档链接"
46 description: "REST 的 url,或 gRPC 的包名+服务名"
45 47 placeholder: "eg: https://api.bilibili.com/2333333"
46 48 validations:
47 required: false
49 required: true
48 50 - type: textarea
49 51 id: details
50 52 attributes:
51 53 label: "详情描述"
52 description: "新增时请描述该 API 的使用场景、请求及响应字段等,可附上原始抓包记录;更新时请指出原文档中与最新 API 行为不符之处,并附上已知的最新改动"
54 description: "请描述该 API 的使用场景、请求及响应字段等,可附上原始抓包记录"
53 55 validations:
54 required: true
56 required: true
Added .github/ISSUE_TEMPLATE/2-update-request.yml +27 -0
@@ -0,0 +1,27 @@
1 name: "更新请求"
2 description: "请求补充或更新文档中已有的 API 定义"
3 title: "[更新请求] <title>"
4 labels: ["更新/Update"]
5 body:
6 - type: checkboxes
7 id: reminders
8 attributes:
9 label: "提交前请确认"
10 options:
11 - label: "我已确认文档中相关内容存在错误或不足,且 Issues、Pull Requests 中无相关提交"
12 required: true
13 - type: input
14 id: document_link
15 attributes:
16 label: "原文档链接"
17 description: "需要更新的文档链接,指定到具体 API"
18 placeholder: "eg: https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/bangumi/info.md#获取剧集明细web端ssidepid方式 or https://socialsisteryi.github.io/bilibili-API-collect/docs/bangumi/info.html#获取剧集明细-web端-ssid-epid方式"
19 validations:
20 required: true
21 - type: textarea
22 id: details
23 attributes:
24 label: "更新内容"
25 description: "请指出原文档中与最新 API 行为不符之处,并附上已知的最新改动和验证信息"
26 validations:
27 required: true
Added .github/ISSUE_TEMPLATE/3-mistake-report.yml +62 -0
@@ -0,0 +1,62 @@
1 name: "错误修正"
2 description: "发现文档内容有误并提交修正请求"
3 title: "[错误修正] <标题>"
4 labels: ["错误/Mistakes"]
5 body:
6 - type: checkboxes
7 id: confirmations
8 attributes:
9 label: "提交前请确认"
10 options:
11 - label: "我已确认文档中的错误存在,且 Issues、Pull Requests 中无相同修正"
12 required: true
13 - label: "我已验证修正内容的正确性"
14 required: false
15
16 - type: input
17 id: document_link
18 attributes:
19 label: "错误所在文档链接"
20 description: "需要修正的文档链接,指定到具体 API"
21 placeholder: "eg: https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/bangumi/info.md#获取剧集明细web端ssidepid方式 or https://socialsisteryi.github.io/bilibili-API-collect/docs/bangumi/info.html#获取剧集明细-web端-ssid-epid方式"
22 validations:
23 required: true
24
25 - type: dropdown
26 id: error_type
27 attributes:
28 label: "错误类型"
29 multiple: true
30 options:
31 - "API 地址/鉴权方式错误"
32 - "参数错误"
33 - "响应数据结构或响应示例错误"
34 - "描述性内容错误(如拼写/流程说明)"
35 - "接口已弃用下线"
36 - "其他(请在下文说明)"
37 validations:
38 required: true
39
40 - type: textarea
41 id: error_description
42 attributes:
43 label: "错误描述"
44 description: "请详细说明具体错误所在,如有多个错误请编号列出"
45 validations:
46 required: true
47
48 - type: textarea
49 id: evidence
50 attributes:
51 label: "纠错依据"
52 description: "如果有,请提供抓包记录等佐证,方便确认。如果有多个错误,请将依据对应错误描述的编号列出"
53 validations:
54 required: false
55
56 - type: textarea
57 id: correction
58 attributes:
59 label: "修正方案"
60 description: "如果可以,请提供修正后的内容,如有多个修正点请编号列出"
61 validations:
62 required: false