mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
chore(issue-checker): 修复一些 pr-ambiguous 和 duplicate 的问题
现在类似 duplicate of ${link} 的评论会自动给当前 issue 加上 duplicate 标签
现在在 PR 没有 commitizen 且没有 module 类标签时,给 PR 评论不会导致 ambiguous 标签消失
This commit is contained in:
37
.github/issue-checker.yml
vendored
37
.github/issue-checker.yml
vendored
@@ -293,6 +293,18 @@ labels:
|
||||
- remove GUI
|
||||
|
||||
# `ambiguous`
|
||||
- name: pr-ambiguous
|
||||
# 不符合 commitizen 的 PR
|
||||
content: ambiguous
|
||||
regexes: '^(?!(?:build|chore|ci|docs?|feat|fix|perf|refactor|rft|style|test)[\:\.\(\,]|[Mm]erge|[Rr]evert|[Rr]elease)'
|
||||
mode:
|
||||
pull_request_target:
|
||||
skip-if:
|
||||
- skip all
|
||||
- skip ambiguous
|
||||
remove-if:
|
||||
- remove all
|
||||
- remove ambiguous
|
||||
- name: ambiguous
|
||||
# 不符合上面任何一个的分类的 issue
|
||||
content: ambiguous
|
||||
@@ -300,6 +312,7 @@ labels:
|
||||
issues:
|
||||
issue_comment: remove
|
||||
skip-if:
|
||||
- pr-ambiguous
|
||||
- skip all
|
||||
- skip ambiguous
|
||||
remove-if:
|
||||
@@ -316,18 +329,6 @@ labels:
|
||||
- others
|
||||
- recruit
|
||||
- roguelike
|
||||
- name: pr-ambiguous
|
||||
# 不符合 commitizen 的 PR
|
||||
content: ambiguous
|
||||
regexes: '^(?!(?:build|chore|ci|docs?|feat|fix|perf|refactor|rft|style|test)[\:\.\(\,]|[Mm]erge|[Rr]evert|[Rr]elease)'
|
||||
mode:
|
||||
pull_request_target:
|
||||
skip-if:
|
||||
- skip all
|
||||
- skip ambiguous
|
||||
remove-if:
|
||||
- remove all
|
||||
- remove ambiguous
|
||||
|
||||
# `release`
|
||||
- name: release
|
||||
@@ -426,20 +427,20 @@ labels:
|
||||
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*\\)|\
|
||||
(?:https?\\://[^/\\s]+/[^/\\s]+/[^/\\s]+/commit/|)[0-9a-z]{40,40})\
|
||||
(?:https?\\://(?:[^/\\s]+/){3}commit/|)[0-9a-z]{40})\
|
||||
\\s*fixed|[Ff]ixed (?:in|at|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*\\)|\
|
||||
(?:https?\\://[^/\\s]+/[^/\\s]+/[^/\\s]+/commit/|)[0-9a-z]{40,40})"
|
||||
(?:https?\\://(?:[^/\\s]+/){3}commit/|)[0-9a-z]{40})"
|
||||
mode:
|
||||
issue_comment: add
|
||||
|
||||
# `duplicate`
|
||||
- name: duplicate
|
||||
regexes:
|
||||
"[Dd]uplicate of\\s*\\[?`?#\\d+"
|
||||
"[Dd]uplicate of\\s*\\[?`?(?:https?\\://(?:[^/\\s]+/){3}issues/|#)\\d+"
|
||||
mode:
|
||||
issue_comment: add
|
||||
|
||||
@@ -454,8 +455,7 @@ labels:
|
||||
- name: incomplete
|
||||
content: incomplete
|
||||
regexes: '(?:\[Uploading asst(?:.bak|)(?: - 副本|)(?:.log|)(?:.zip|)…\]\(\))'
|
||||
mode:
|
||||
add: [issues, issue_comment]
|
||||
mode: add
|
||||
skip-if:
|
||||
- skip all
|
||||
- skip incomplete
|
||||
@@ -467,8 +467,7 @@ labels:
|
||||
regexes: '(?:\[asst(?:.bak|)(?: - 副本|)(?:.log|)(?:.zip|)\]\([^\)]+\))'
|
||||
- name: remove incomplete
|
||||
content: incomplete
|
||||
mode:
|
||||
remove: [issues, issue_comment]
|
||||
mode: remove
|
||||
skip-if:
|
||||
- skip all
|
||||
- skip incomplete
|
||||
|
||||
Reference in New Issue
Block a user