Merge pull request #1515 from MaaAssistantArknights/master

chore: labeler 相关优化,增加英文议题模板
This commit is contained in:
zzyyyl
2022-08-11 01:14:04 +08:00
committed by GitHub
11 changed files with 303 additions and 115 deletions

View File

@@ -1,10 +0,0 @@
---
name: 其他Others
about: 其他议题
title: ''
labels: ''
assignees: ''
---

View File

@@ -1,4 +1,4 @@
name: 问题反馈(Bug report
name: 问题反馈(使用中文
description: 识别错误、操作异常、连接错误等
labels: ['bug']
body:

View File

@@ -1,4 +1,4 @@
name: 需求建议(Feature request
name: 需求建议(使用中文
description: 新功能、建议等
labels: ['enhancement']
body:

10
.github/ISSUE_TEMPLATE/cn-others.md vendored Normal file
View File

@@ -0,0 +1,10 @@
---
name: 其他议题(使用中文)
about: 提出问题,但不是报告错误或需求建议
title: ''
labels: 'question'
assignees: ''
---

View File

@@ -0,0 +1,74 @@
name: Bug Report (in English)
description: >-
Recognition errors, operation abnormalities,
connection errors, etc.
labels: ['bug']
body:
- type: checkboxes
id: checks
attributes:
label: Before raising the issue...
options:
- label: >-
I understand that Issues are for feedback and problem solving,
not trolling the comments section, and will provide as
much information as possible to help solve the problem.
required: true
- label: >-
I spent at least 5 minutes thinking and preparing
before raising the issue.
required: true
- label: >-
I have read the FAQ and the User Manual in the documentation
and believe that this is most likely a bug and not designed
to be so.
required: true
- label: >-
I have checked the latest beta update and there is no mention
of the bug being fixed.
required: true
- type: textarea
id: describe
attributes:
label: Description
description: Describe your problem in as much detail as possible
validations:
required: true
- type: textarea
id: logs
attributes:
label: Log files
description: >-
Upload the `asst.log` log file from the software directory and
indicate the approximate point in time when the problem occurred.
Please drag and drop the full file in, not your own cuttings;
compress it before uploading if too large.
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: >-
If available, add screenshots to help explain your problem,
including but not limited to screenshots of MAA software,
screenshots of game screens.
If the problem is recognition related, please help by providing
the original image taken by the emulator's own screenshot tool
(or via adb).
validations:
required: false
- type: textarea
id: others
attributes:
label: Anthing else?
description: >-
Emulator used, operating system, related configuration, links,
reference material, etc.
Anything that will give us more insight into the problem
you are having.
validations:
required: false

View File

@@ -0,0 +1,23 @@
name: Feature Request (in English)
description: New features, suggestions, etc.
labels: ['enhancement']
body:
- type: textarea
id: describe
attributes:
label: The problems you have encountered?
validations:
required: false
- type: textarea
id: solution
attributes:
label: Any good ideas?
validations:
required: false
- type: textarea
id: additional
attributes:
label: Additional
description: Any other background, screen shots, etc.
validations:
required: false

10
.github/ISSUE_TEMPLATE/en-others-.md vendored Normal file
View File

@@ -0,0 +1,10 @@
---
name: Others (in English)
about: Ask a question rather than a bug report or feature request.
title: ''
labels: 'question'
assignees: ''
---

159
.github/issue-checker.yml vendored Normal file
View File

@@ -0,0 +1,159 @@
default-mode:
pull_request_target: [add, remove]
issues: [add, remove]
issue_comment: [add]
labels:
# <!-- [Aa]dd `LABEL` --> 可以强制加上一个 label
# <!-- [Rr]emove `LABEL` --> 可以强制去掉一个 label
# Add 的优先级比 Remove 高
- name: "module: copilot"
regexes:
- '(?:[Aa]dd (?:`|)(?:module: |)copilot(?:`|)|自动(作战|战斗|编队)|作业|自動(戰|戦)(鬥|闘)|作業|copilot)'
- "(?:[Aa]dd (?:`|)(?:module: |)copilot(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)copilot(?:`|))))[\\s\\S]*$)"
- name: "module: roguelike"
regexes:
- '(?:[Aa]dd (?:`|)(?:module: |)roguelike(?:`|)|肉(鸽|鴿)|集成战略|rogue|ローグ)'
- "(?:[Aa]dd (?:`|)(?:module: |)roguelike(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)roguelike(?:`|))))[\\s\\S]*$)"
- name: "module: fight"
regexes:
- '(?:[Aa]dd (?:`|)(?:module: |)fight(?:`|)|刷图|剿灭|刷.{0,6}材料|关卡选择|战斗|作战|(戰|戦)(鬥|闘)|fight|battle)'
- "(?:[Aa]dd (?:`|)(?:module: |)fight(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)fight(?:`|))))[\\s\\S]*$)"
disabled-if:
- "module: copilot"
- "module: roguelike"
- name: "module: infrast"
regexes:
- "(?:[Aa]dd (?:`|)(?:module: |)infrast(?:`|)|\
基建|贸易站|制造站|发电站|加工站|会客室|训练室|办公室|控制中枢|宿舍|基地|infrast|dorm)"
- "(?:[Aa]dd (?:`|)(?:module: |)infrast(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)infrast(?:`|))))[\\s\\S]*$)"
- name: "module: others"
regexes:
- '(?:[Aa]dd (?:`|)(?:module: |)others(?:`|)|信用|拜访|登录|开始唤醒|visit|login|startup)'
- "(?:[Aa]dd (?:`|)(?:module: |)others(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)others(?:`|))))[\\s\\S]*$)"
- name: "module: recruit"
regexes:
- '(?:[Aa]dd (?:`|)(?:module: |)recruit(?:`|)|公招|招募|公開(募集|求人)|recruit)'
- "(?:[Aa]dd (?:`|)(?:module: |)recruit(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)recruit(?:`|))))[\\s\\S]*$)"
disabled-if:
- "module: roguelike"
- name: "module: GUI"
# 其它模块都匹配不上的时候再尝试匹配GUI
# 因为可能有人说“公招界面”“肉鸽崩溃”“基建闪退”等等
regexes:
- '(?:[Aa]dd (?:`|)(?:module: |)GUI(?:`|)|图形化界面|闪退|gui|GUI|インターフェース)'
- "(?:[Aa]dd (?:`|)(?:module: |)GUI(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)GUI(?:`|))))[\\s\\S]*$)"
disabled-if:
- "module: copilot"
- "module: fight"
- "module: infrast"
- "module: recruit"
- "module: roguelike"
- "module: others"
- name: "release"
regexes:
- '(?:[Aa]dd (?:`|)release(?:`|)|Release v(?:\d)+\.(?:\d)+\.(?:\d)+)'
- "(?:[Aa]dd (?:`|)release(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)release(?:`|))))[\\s\\S]*$)"
mode:
pull_request_target: [add, remove]
- name: "ambiguous"
# 不符合上面任何一个的分类并且如果是PR不符合 commitizen
regexes:
- "(?:[Aa]dd (?:`|)ambiguous(?:`|)|^(?![\\s\\S]*(?:\
feat|chore|perf|style|refactor|fix|doc|\
[Rr]emove (?:[Aa]ll labels|(?:`|)ambiguous(?:`|))))[\\s\\S]*$)"
mode:
pull_request_target: [add, remove]
issues: [add, remove]
issue_comment: [remove]
disabled-if:
- "module: copilot"
- "module: fight"
- "module: GUI"
- "module: infrast"
- "module: others"
- "module: recruit"
- "module: roguelike"
- "release"
- name: "translation required"
# 不要使用日文发 issue
regexes:
- "(?:[Aa]dd (?:`|)translation required(?:`|)|([\\u3040-\\u30ff]|[㍿㍐]))"
- "(?:[Aa]dd (?:`|)translation required(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)translation required(?:`|))))[\\s\\S]*$)"
mode:
pull_request_target: [add, remove]
issues: [add, remove]
- name: "Client: JP"
regexes:
- '(?:[Aa]dd (?:`|)(?:module: |)Client: JP(?:`|)|日(文|语|本|)服|YoStarJP)'
- "(?:[Aa]dd (?:`|)(?:module: |)Client: JP(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: JP(?:`|))))[\\s\\S]*$)"
- name: "Client: EN"
regexes:
- '(?:[Aa]dd (?:`|)(?:module: |)Client: EN(?:`|)|英(文|语|)服|国际服|美服|YoStarEN)'
- "(?:[Aa]dd (?:`|)(?:module: |)Client: EN(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: EN(?:`|))))[\\s\\S]*$)"
- name: "Client: KR"
regexes:
- '(?:[Aa]dd (?:`|)(?:module: |)Client: KR(?:`|)|韩(文|语|国|)服|YoStarKR)'
- "(?:[Aa]dd (?:`|)(?:module: |)Client: KR(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: KR(?:`|))))[\\s\\S]*$)"
- name: "Client: ZH_TW"
regexes:
- '(?:[Aa]dd (?:`|)(?:module: |)Client: ZH_TW(?:`|)|繁中服|台(湾|灣|)服|繁体中文服|(龙|龍)成|天下网游|txwy)'
- "(?:[Aa]dd (?:`|)(?:module: |)Client: ZH_TW(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: ZH_TW(?:`|))))[\\s\\S]*$)"
- name: "MAA Team"
mode:
pull_request_target: [add]
issues: [add]
author_association:
- "MEMBER"
- name: "fixed"
regexes:
- "(?:(?:`v\\d+\\.\\d+\\.\\d+(?:-(?:alpha|beta)\\.\\d+|\\.\\d+|)`|\
v\\d+\\.\\d+\\.\\d+(?:-(?:alpha|beta)\\.\\d+|\\.\\d+|)\\s+)|\
\\[(?:`v\\d+\\.\\d+\\.\\d+(?:-(?:alpha|beta)\\.\\d+|\\.\\d+|)`|\
v\\d+\\.\\d+\\.\\d+(?:-(?:alpha|beta)\\.\\d+|\\.\\d+|))\\]\\(\\S*\\))\
\\s*fixed|(?:[Ff]ixed by\\s*\
(?:`v\\d+\\.\\d+\\.\\d+(?:-(?:alpha|beta)\\.\\d+|\\.\\d+|)`|\\s+\
v\\d+\\.\\d+\\.\\d+(?:-(?:alpha|beta)\\.\\d+|\\.\\d+|))|\
\\[(?:`v\\d+\\.\\d+\\.\\d+(?:-(?:alpha|beta)\\.\\d+|\\.\\d+|)`|\
v\\d+\\.\\d+\\.\\d+(?:-(?:alpha|beta)\\.\\d+|\\.\\d+|))\\]\\(\\S*\\))"
mode:
issue_comment: [add]
- name: "duplicate"
regexes:
"[Dd]uplicate of\\s*\\[?`?#\\d+"
mode:
issue_comment: [add]
comments:
- name: Log upload failed
regexes:
- '\[Uploading asst(?:.bak|)(?: - 副本|).(?:zip|log)…\]\(\)'
content:
"你的日志没有上传成功,请重新上传。\n\n\
Your log did not upload successfully, please re-upload it."
mode:
pull_request_target: [add]
issues: [add]
issue_comment: [add]
- name: Upload failed
regexes: Uploading
content:
"你有一些文件没有上传成功,请重新上传。\n\n\
You have some files that did not upload successfully, please re-upload them."
mode:
pull_request_target: [add]
issues: [add]
issue_comment: [add]
disabled-if:
- "Log upload failed"

85
.github/labeler.yml vendored
View File

@@ -1,85 +0,0 @@
# <!-- [Aa]dd `LABEL` --> 可以强制加上一个 label
# <!-- [Rr]emove `LABEL` --> 可以强制去掉一个 label
# Add 的优先级比 Remove 高
"module: copilot":
- '(?:[Aa]dd (?:`|)(?:module: |)copilot(?:`|)|自动(作战|战斗|编队)|作业|自動(戰|戦)(鬥|闘)|作業|copilot)'
- "(?:[Aa]dd (?:`|)(?:module: |)copilot(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)copilot(?:`|))))[\\s\\S]*$)"
"module: fight":
- '(?:[Aa]dd (?:`|)(?:module: |)fight(?:`|)|刷图|刷.{0,6}材料|关卡选择|战斗|作战|(戰|戦)(鬥|闘)|fight|battle)'
- "(?:[Aa]dd (?:`|)(?:module: |)fight(?:`|)|^(?![\\s\\S]*(?:\
自动(作战|战斗|编队)|作业|自動(戰|戦)(鬥|闘)|作業|copilot|\
肉(鸽|鴿)|集成战略|rogue|ローグ|\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)fight(?:`|))))[\\s\\S]*$)"
"module: GUI":
# 其它模块都匹配不上的时候再尝试匹配GUI
# 因为可能有人说“公招界面”“肉鸽崩溃”“基建闪退”等等
- '(?:[Aa]dd (?:`|)(?:module: |)GUI(?:`|)|图形化界面|闪退|gui|GUI|インターフェース)'
- "(?:[Aa]dd (?:`|)(?:module: |)GUI(?:`|)|^(?![\\s\\S]*(?:\
自动编队|作业|作業|copilot|\
刷图|刷.{0,6}材料|关卡选择|战斗|作战|(戰|戦)(鬥|闘)|fight|battle|\
基建|贸易站|制造站|控制中枢|会客室|基地|infrast|base|\
信用|拜访|登录|开始唤醒|visit|login|startup|\
公招|招募|公開(募集|求人)|recruit|\
肉(鸽|鴿)|集成战略|rogue|ローグ|\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)GUI(?:`|))))[\\s\\S]*$)"
"module: infrast":
- '(?:[Aa]dd (?:`|)(?:module: |)infrast(?:`|)|基建|贸易站|制造站|控制中枢|会客室|基地|infrast|base)'
- "(?:[Aa]dd (?:`|)(?:module: |)infrast(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)infrast(?:`|))))[\\s\\S]*$)"
"module: others":
- '(?:[Aa]dd (?:`|)(?:module: |)others(?:`|)|信用|拜访|登录|开始唤醒|visit|login|startup)'
- "(?:[Aa]dd (?:`|)(?:module: |)others(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)others(?:`|))))[\\s\\S]*$)"
"module: recruit":
- '(?:[Aa]dd (?:`|)(?:module: |)recruit(?:`|)|公招|招募|公開(募集|求人)|recruit)'
- "(?:[Aa]dd (?:`|)(?:module: |)recruit(?:`|)|^(?![\\s\\S]*(?:\
肉(鸽|鴿)|集成战略|rogue|ローグ|\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)recruit(?:`|))))[\\s\\S]*$)"
"module: roguelike":
- '(?:[Aa]dd (?:`|)(?:module: |)roguelike(?:`|)|肉(鸽|鴿)|集成战略|rogue|ローグ)'
- "(?:[Aa]dd (?:`|)(?:module: |)roguelike(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)roguelike(?:`|))))[\\s\\S]*$)"
"release":
- '(?:[Aa]dd (?:`|)release(?:`|)|Release v(?:\d)+\.(?:\d)+\.(?:\d)+)'
- "(?:[Aa]dd (?:`|)release(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)release(?:`|))))[\\s\\S]*$)"
"ambiguous":
# 不符合上面任何一个的分类并且如果是PR不符合 commitizen
- '(?:[Aa]dd (?:`|)ambiguous(?:`|))'
- "(?:[Aa]dd (?:`|)ambiguous(?:`|)|^(?![\\s\\S]*(?:\
feat|chore|perf|style|refactor|fix|doc|\
自动编队|作业|作業|copilot|\
刷图|刷.{0,6}材料|关卡选择|战斗|作战|戰鬥|戦闘|fight|battle|\
图形化界面|闪退|gui|GUI|インターフェース|\
基建|贸易站|制造站|控制中枢|会客室|基地|infrast|base|\
信用|拜访|登录|开始唤醒|visit|login|startup|\
公招|招募|公開(募集|求人)|recruit|\
肉(鸽|鴿)|集成战略|rogue|ローグ|\
Release v(?:\\d)+\\.(?:\\d)+\\.(?:\\d)+|\
[Rr]emove (?:[Aa]ll labels|(?:`|)ambiguous(?:`|))))[\\s\\S]*$)"
"translation required":
# 不要使用日文发 issue
- "(?:[Aa]dd (?:`|)translation required(?:`|)|([\\u3040-\\u30ff]|[㍿㍐]))"
- "(?:[Aa]dd (?:`|)translation required(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)translation required(?:`|))))[\\s\\S]*$)"
"Client: JP":
- '(?:[Aa]dd (?:`|)(?:module: |)Client: JP(?:`|)|日(文|语|本|)服|YoStarJP)'
- "(?:[Aa]dd (?:`|)(?:module: |)Client: JP(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: JP(?:`|))))[\\s\\S]*$)"
"Client: EN":
- '(?:[Aa]dd (?:`|)(?:module: |)Client: EN(?:`|)|英(文|语|)服|国际服|美服|YoStarEN)'
- "(?:[Aa]dd (?:`|)(?:module: |)Client: EN(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: EN(?:`|))))[\\s\\S]*$)"
"Client: KR":
- '(?:[Aa]dd (?:`|)(?:module: |)Client: KR(?:`|)|韩(文|语|国|)服|YoStarKR)'
- "(?:[Aa]dd (?:`|)(?:module: |)Client: KR(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: KR(?:`|))))[\\s\\S]*$)"
"Client: ZH_TW":
- '(?:[Aa]dd (?:`|)(?:module: |)Client: ZH_TW(?:`|)|繁中服|台(湾|灣|)服|繁体中文服|(龙|龍)成|天下网游|txwy)'
- "(?:[Aa]dd (?:`|)(?:module: |)Client: ZH_TW(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: ZH_TW(?:`|))))[\\s\\S]*$)"
"MAA Team":
- '(?:[Aa]dd (?:`|)(?:MAA|maa)(?: |)[Tt]eam(?:`|))'
- "(?:[Aa]dd (?:`|)(?:MAA|maa)(?: |)[Tt]eam(?:`|)|^(?![\\s\\S]*(?:\
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:MAA|maa)(?: |)[Tt]eam(?:`|))))[\\s\\S]*$)"

25
.github/workflows/issue-checker.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: "Issue Checker"
on:
issues:
types: [opened, edited]
pull_request_target:
types: [opened, edited]
issue_comment:
types: [created, edited]
push:
permissions:
contents: read
issues: write
pull-requests: write
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: zzyyyl/issue-checker@v1.5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/issue-checker.yml
not-before: 2022-08-05T00:00:00Z
include-title: 1

View File

@@ -1,18 +0,0 @@
name: "Labeler"
on:
issues:
types: [opened, edited]
pull_request:
types: [opened, edited]
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
not-before: 2022-08-05T00:00:00Z
enable-versioned-regex: 0
include-title: 1