Skip to content

Commit

Permalink
feat: 反馈文件 (添加规则#07)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlctate committed Nov 6, 2024
1 parent f204126 commit 1d3d04e
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 8 deletions.
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 报告 Bug
description: 报告 失效/误触 规则Bug
body:
- type: markdown
attributes:
value: |
请按照此模版填写 BUG 界面的快照
- type: checkboxes
id: checkboxes
attributes:
label: 一些验证
description: 在提交问题之前,请确保您完成以下操作
options:
- label: 搜索检查是否已经存在请求相同功能的问题/讨论,以避免重复创建issue
required: true
- label: |
检查这个问题是否属于 [本项目维护的规则](https://github.com/MengNianxiaoyao/gkd-subscription) 导致的
required: true
- label: 我确认知晓并同意维护者直接关闭不符合规范的issue
required: true
- label: 我确保提供下列BUG描述及其复现步骤, 否则我同意维护者直接关闭issue
required: true
- label: 我确保提供 误触/不执行规则 的界面的快照, 否则我同意维护者直接关闭issue
required: true
- type: textarea
id: feature-description
attributes:
label: |
请输入 误触/不执行规则 的界面的快照, BUG描述及其复现步骤(视频/截图)或者生成的快照链接, 也可在后面补充其它信息
请注意:
1. 不提供快照或者仅提供截图的 issue 将被自动关闭
2. 如果你的issue被受理,受理者提出的问题、要求,应在3日内予以回复,否则会被关闭
description: |
快照是一个 zip 文件, 快照链接是类似 "https://i.gkd.li/i/XXXXXXXX" 的文本, 按照如下方式可获得快照信息
按照下面的截图示例来获取界面快照, 上传文件或者生成链接并粘贴到下面的输入框\
![img](https://user-images.githubusercontent.com/45487685/270372181-9e05a475-6664-4e1b-adc7-1e3973fff01f.png)\
此外需提供 [主页-点击记录] 的截图\
validations:
required: true
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: APP 适配
description: 请求增加适配 APP 规则
body:
- type: markdown
attributes:
value: |
请按照此模版填写 APP 适配规则需求信息
- type: textarea
id: feature-description
attributes:
label: |
请输入需要添加规则的界面的快照或者生成的链接, 也可在后面补充其它信息
请注意: 不提供快照或者仅提供截图的 issue 将被自动关闭
description: |
快照是一个 zip 文件, 快照链接是类似 https://i.gkd.li/i/13474517 的文本, 按照如下方式可获得快照信息
按照此教程 [CONTRIBUTING.md](https://github.com/gkd-kit/subscription/blob/main/CONTRIBUTING.md) 或者下面的截图示例 来给界面打快照, 上传文件或者生成链接并粘贴到下面的输入框\
![img](https://user-images.githubusercontent.com/45487685/270372181-9e05a475-6664-4e1b-adc7-1e3973fff01f.png)\
如果是需要多个点击如 [点击关闭按钮->出现关闭弹窗->点击关闭原因] 这种类型, 则需要填写每个点击界面的快照
validations:
required: true
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: |
status=$(git status --porcelain)
if [ -n "$status" ]; then
echo "Something wasnt formatted properly"
echo "Something wasn't formatted properly"
git --no-pager diff
exit 1
fi
12 changes: 6 additions & 6 deletions src/apps/com.taobao.idlefish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ export default defineGkdApp({
},
{
key: 2,
actionDelay: 5000,
actionDelay: 3000,
name: '点击[扱骰子寻宝]',
matches: '@View[id="mapDiceBtn"] > View[text.length>1]',
snapshotUrls: 'https://i.gkd.li/i/17606060',
},
{
key: 3,
actionDelay: 1500,
actionDelay: 1000,
name: '点击[赚骰子]-有领取奖励',
matches:
'View[text="领"] <2 @View[index=1] +3 View > View[text="赚"]',
Expand All @@ -127,7 +127,7 @@ export default defineGkdApp({
},
{
key: 5,
actionDelay: 300,
actionDelay: 200,
name: '领取任务',
matches: 'View[index=9 || index=5][text="领取奖励"]',
snapshotUrls: [
Expand Down Expand Up @@ -162,7 +162,7 @@ export default defineGkdApp({
actionDelay: 2000,
name: '点击[背包]',
matches:
'View[text!="领"] <2 View +3 View > View[text="赚"] <2 View - View > Image',
'View[childCount=5] > View[index=1][childCount=1] +3 View > View[text="赚"] <2 View - View > Image',
snapshotUrls: [
'https://i.gkd.li/i/17606060',
'https://i.gkd.li/i/17606487',
Expand All @@ -172,9 +172,9 @@ export default defineGkdApp({
preKeys: [1],
key: 2,
actionDelay: 200,
name: '点击[道具]',
name: '使用[道具]',
matches:
'View > View[index=1 || index=0] > View[index=1][text!="加点卡"] + View[index=2][text="使用"]',
'View[index=2] >3 View[index=1 || index=0] > View[index=1][text!="加点卡"] + [text="使用"]',
snapshotUrls: 'https://i.gkd.li/i/17606047',
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default defineGkdSubscription({
version: 0,
author: 'Mrlc',
checkUpdateUrl: './gkd.version.json5',
supportUri: 'https://www.npmjs.com/package/gkd-mrlc',
supportUri: 'https://github.com/mrlctate/gkd-mrlc/issues/new/choose',
categories,
globalGroups,
apps: rawApps,
Expand Down

0 comments on commit 1d3d04e

Please sign in to comment.