xref: /DragonOS/.github/issue-checker.yml (revision 86ee1395de7c614865236ee15071c3603b794e44)
1default-mode:
2  add:
3  remove: [pull_request_target, issues]
4labels:
5# skips and removes
6- name: skip all
7  content:
8  regexes: '[Ss]kip (?:[Aa]ll |)[Ll]abels?'
9- name: remove all
10  content:
11  regexes: '[Rr]emove (?:[Aa]ll |)[Ll]abels?'
12- name: skip ambiguous
13  content:
14  regexes: '[Ss]kip (?:[Ll]abels? |)(?:`|)ambiguous(?:`|)'
15- name: remove ambiguous
16  content:
17  regexes: '[Rr]emove (?:[Ll]abels? |)(?:`|)ambiguous(?:`|)'
18# `feature`
19- name: enhance
20  content: enhancement
21  regexes: '[Ff]eat(?:\([a-zA-Z]*/?[a-zA-Z]*\))?[\:\.\,]'
22  skip-if:
23  - skip all
24  remove-if:
25  - remove all
26# `Bug fix`
27- name: bug-fix
28  content: Bug fix
29  regexes: '[Ff]ix(?:\([a-zA-Z]*/?[a-zA-Z]*\))?[\:\.\,]'
30  skip-if:
31  - skip all
32  remove-if:
33  - remove all
34# `document`
35- name: doc
36  content: documentation
37  regexes: '[Dd]ocs(?:\([a-zA-Z]*/?[a-zA-Z]*\))?[\:\.\,]'
38  skip-if:
39  - skip all
40  remove-if:
41  - remove all
42# `test`
43- name: test
44  content: test
45  regexes: '[Tt]est(?:\([a-zA-Z]*/?[a-zA-Z]*\))?[\:\.\,]'
46  skip-if:
47  - skip all
48  remove-if:
49  - remove all
50# `ambiguous`
51- name: pr-ambiguous
52  # 不符合 commitizen 的 PR
53  content: ambiguous
54  regexes: '^(?!(?:build|chore|ci|docs?|feat|fix|perf|refactor|rft|style|test)(?:\([a-zA-Z]*\))?[\:\.\(\,]|[Rr]evert|[Rr]elease)'
55  mode:
56    pull_request_target:
57  skip-if:
58  - skip all
59  - skip ambiguous
60  remove-if:
61  - remove all
62  - remove ambiguous
63