diff --git a/.github/labeler.yml b/.github/labeler.yml index ee3a017ce1..57ef7b51a4 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -4,13 +4,13 @@ "module: copilot": - '(?:[Aa]dd (?:`|)(?:module: |)copilot(?:`|)|自动作战|自动战斗|自动编队|作业|copilot|自動戰鬥|自動戦闘|作業)' - '(?:[Aa]dd (?:`|)(?:module: |)copilot(?:`|)|^(?![\s\S]*(?:\ - [Rr]emove (?:`|)(?: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 (?:`|)(?:module: |)fight(?:`|)))[\s\S]*$)' + [Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)fight(?:`|))))[\s\S]*$)' "module: GUI": # 其它模块都匹配不上的时候再尝试匹配GUI # 因为可能有人说“公招界面”“肉鸽崩溃”“基建闪退”等等 @@ -22,28 +22,28 @@ 信用|拜访|登录|开始唤醒|visit|login|startup|\ 公招|招募|recruit|公開求人|\ 肉鸽|集成战略|rogue|肉鴿|ローグ|\ - [Rr]emove (?:`|)(?:module: |)GUI(?:`|)))[\s\S]*$)' + [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 (?:`|)(?: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 (?:`|)(?: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 (?:`|)(?:module: |)recruit(?:`|)))[\s\S]*$)' + [Rr]emove (?:[Aa]ll labels|(?:`|)(?:module: |)recruit(?:`|))))[\s\S]*$)' "module: roguelike": - '(?:[Aa]dd (?:`|)(?:module: |)roguelike(?:`|)|肉鸽|集成战略|rogue|肉鴿|ローグ)' - '(?:[Aa]dd (?:`|)(?:module: |)roguelike(?:`|)|^(?![\s\S]*(?:\ - [Rr]emove (?:`|)(?: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 (?:`|)release(?:`|)))[\s\S]*$)' + [Rr]emove (?:[Aa]ll labels|(?:`|)release(?:`|))))[\s\S]*$)' "ambiguous": # 不符合上面任何一个的分类并且(如果是PR)不符合 commitizen - '(?:[Aa]dd (?:`|)ambiguous(?:`|))' @@ -57,4 +57,4 @@ 公招|招募|recruit|公開求人|\ 肉鸽|集成战略|rogue|肉鴿|ローグ|\ Release v(?:\d)+\.(?:\d)+\.(?:\d)+|\ - [Rr]emove (?:`|)ambiguous(?:`|)))[\s\S]*$)' + [Rr]emove (?:[Aa]ll labels|(?:`|)ambiguous(?:`|))))[\s\S]*$)'