mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
81
.github/labeler.yml
vendored
81
.github/labeler.yml
vendored
@@ -1,38 +1,85 @@
|
||||
# <!-- [Aa]dd `LABEL` --> 可以强制加上一个 label
|
||||
# <!-- [Rr]emove `LABEL` --> 可以强制去掉一个 label
|
||||
# Add 的优先级比 Remove 高
|
||||
"module: copilot":
|
||||
- '(自动作战|自动战斗|自动编队|作业|copilot|自動戰鬥|自動戦闘|作業)'
|
||||
- '(?:[Aa]dd (?:`|)(?:module: |)copilot(?:`|)|自动作战|自动战斗|自动编队|作业|copilot|自動戰鬥|自動戦闘|作業)'
|
||||
- "(?:[Aa]dd (?:`|)(?:module: |)copilot(?:`|)|^(?![\\s\\S]*(?:\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)copilot(?:`|))))[\\s\\S]*$)"
|
||||
"module: fight":
|
||||
- '(刷图|刷.{0,6}材料|关卡选择|战斗|作战|戰鬥|戦闘|fight|battle)'
|
||||
- '^(?!(.|\s)*(自动作战|自动战斗|自动编队|作业|copilot|自動戰鬥|自動戦闘|作業|\
|
||||
肉鸽|集成战略|rogue|肉鴿|ローグ))(.|\s)*$'
|
||||
- '(?:[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
|
||||
# 因为可能有人说“公招界面”“肉鸽崩溃”“基建闪退”等等
|
||||
- '(图形化界面|闪退|gui|GUI|インターフェース)'
|
||||
- '^(?!(.|\s)*(自动作战|自动战斗|自动编队|作业|copilot|自動戰鬥|自動戦闘|作業|\
|
||||
- '(?:[Aa]dd (?:`|)(?:module: |)GUI(?:`|)|图形化界面|闪退|gui|GUI|インターフェース)'
|
||||
- "(?:[Aa]dd (?:`|)(?:module: |)GUI(?:`|)|^(?![\\s\\S]*(?:\
|
||||
自动作战|自动战斗|自动编队|作业|copilot|自動戰鬥|自動戦闘|作業|\
|
||||
刷图|刷.{0,6}材料|关卡选择|战斗|作战|戰鬥|戦闘|fight|battle|\
|
||||
基建|贸易站|制造站|控制中枢|会客室|infrast|base|基地|\
|
||||
信用|拜访|登录|开始唤醒|visit|login|startup|\
|
||||
公招|招募|recruit|公開求人|\
|
||||
肉鸽|集成战略|rogue|肉鴿|ローグ))(.|\s)*$'
|
||||
公招|招募|recruit|公開募集|公開求人|\
|
||||
肉鸽|集成战略|rogue|肉鴿|ローグ|\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)GUI(?:`|))))[\\s\\S]*$)"
|
||||
"module: infrast":
|
||||
- '(基建|贸易站|制造站|控制中枢|会客室|infrast|base|基地)'
|
||||
- '(?:[Aa]dd (?:`|)(?:module: |)infrast(?:`|)|基建|贸易站|制造站|控制中枢|会客室|infrast|base|基地)'
|
||||
- "(?:[Aa]dd (?:`|)(?:module: |)infrast(?:`|)|^(?![\\s\\S]*(?:\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)infrast(?:`|))))[\\s\\S]*$)"
|
||||
"module: others":
|
||||
- '(信用|拜访|登录|开始唤醒|visit|login|startup)'
|
||||
- '(?:[Aa]dd (?:`|)(?:module: |)others(?:`|)|信用|拜访|登录|开始唤醒|visit|login|startup)'
|
||||
- "(?:[Aa]dd (?:`|)(?:module: |)others(?:`|)|^(?![\\s\\S]*(?:\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)others(?:`|))))[\\s\\S]*$)"
|
||||
"module: recruit":
|
||||
- '(公招|招募|recruit|公開求人)'
|
||||
- '^(?!(.|\s)*(肉鸽|集成战略|rogue|肉鴿|ローグ))(.|\s)*$'
|
||||
- '(?:[Aa]dd (?:`|)(?:module: |)recruit(?:`|)|公招|招募|recruit|公開募集|公開求人)'
|
||||
- "(?:[Aa]dd (?:`|)(?:module: |)recruit(?:`|)|^(?![\\s\\S]*(?:\
|
||||
肉鸽|集成战略|rogue|肉鴿|ローグ|\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)recruit(?:`|))))[\\s\\S]*$)"
|
||||
"module: roguelike":
|
||||
- '(肉鸽|集成战略|rogue|肉鴿|ローグ)'
|
||||
- '(?:[Aa]dd (?:`|)(?:module: |)roguelike(?:`|)|肉鸽|集成战略|rogue|肉鴿|ローグ)'
|
||||
- "(?:[Aa]dd (?:`|)(?:module: |)roguelike(?:`|)|^(?![\\s\\S]*(?:\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)roguelike(?:`|))))[\\s\\S]*$)"
|
||||
"release":
|
||||
- '(Release v(\d)+\.(\d)+\.(\d)+)'
|
||||
- '(?:[Aa]dd (?:`|)release(?:`|)|Release v(?:\d)+\.(?:\d)+\.(?:\d)+)'
|
||||
- "(?:[Aa]dd (?:`|)release(?:`|)|^(?![\\s\\S]*(?:\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)release(?:`|))))[\\s\\S]*$)"
|
||||
"ambiguous":
|
||||
# 不符合上面任何一个的分类并且(如果是PR)不符合 commitizen
|
||||
- '^(?!(.|\s)*(feat|chore|perf|style|refactor|fix|doc|\
|
||||
- '(?:[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|公開求人|\
|
||||
公招|招募|recruit|公開募集|公開求人|\
|
||||
肉鸽|集成战略|rogue|肉鴿|ローグ|\
|
||||
Release v(\d)+\.(\d)+\.(\d)+))(.|\s)*$'
|
||||
Release v(?:\\d)+\\.(?:\\d)+\\.(?:\\d)+|\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)ambiguous(?:`|))))[\\s\\S]*$)"
|
||||
"translation required":
|
||||
# 不要使用日文发 issue
|
||||
- "(?:[Aa]dd (?:`|)translation required(?:`|)|[\
|
||||
あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん\
|
||||
アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン\
|
||||
がぎぐげござじずぜぞだぢづでどぱぴぷぺぽばびぶべぼゃゅょ\
|
||||
ガギグゲゴザジズゼゾダヂヅデドパピプペポバビブベボャュョ])"
|
||||
- "(?:[Aa]dd (?:`|)translation required(?:`|)|^(?![\\s\\S]*(?:\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)translation required(?:`|))))[\\s\\S]*$)"
|
||||
"Client: JP":
|
||||
- '(?:[Aa]dd (?:`|)(?:module: |)Client: JP(?:`|)|日服)'
|
||||
- "(?:[Aa]dd (?:`|)(?:module: |)Client: JP(?:`|)|^(?![\\s\\S]*(?:\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: JP(?:`|))))[\\s\\S]*$)"
|
||||
"Client: EN":
|
||||
- '(?:[Aa]dd (?:`|)(?:module: |)Client: EN(?:`|)|国际服|美服)'
|
||||
- "(?:[Aa]dd (?:`|)(?:module: |)Client: EN(?:`|)|^(?![\\s\\S]*(?:\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: EN(?:`|))))[\\s\\S]*$)"
|
||||
"Client: KR":
|
||||
- '(?:[Aa]dd (?:`|)(?:module: |)Client: KR(?:`|)|韩服)'
|
||||
- "(?:[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(?:`|)|繁中服)'
|
||||
- "(?:[Aa]dd (?:`|)(?:module: |)Client: ZH_TW(?:`|)|^(?![\\s\\S]*(?:\
|
||||
[Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)Client: ZH_TW(?:`|))))[\\s\\S]*$)"
|
||||
|
||||
8
.github/workflows/labeler.yml
vendored
8
.github/workflows/labeler.yml
vendored
@@ -1,9 +1,9 @@
|
||||
name: "Issue Labeler"
|
||||
name: "Labeler"
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
types: [opened, edited]
|
||||
pull_request:
|
||||
types: [opened]
|
||||
types: [opened, edited]
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
@@ -13,6 +13,6 @@ jobs:
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
configuration-path: .github/labeler.yml
|
||||
not-before: 2022-08-01T00:00:00Z
|
||||
not-before: 2022-08-05T00:00:00Z
|
||||
enable-versioned-regex: 0
|
||||
include-title: 1
|
||||
|
||||
Reference in New Issue
Block a user