Repository navigation
Expand file tree
/
Copy pathlabeler.yml
More file actions
172 lines (172 loc) · 4.34 KB
/
Copy pathlabeler.yml
File metadata and controls
172 lines (172 loc) · 4.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Configuration for actions/labeler.
#
# Each label maps to a LIST of match objects. File matchers use the v5+ shape
# `changed-files: [ { any-glob-to-any-file: [...] } ]`; the v4 mapping form is
# rejected by actions/labeler v7.
# The default status:needs-review (PRs) and priority:normal (everything) are
# owned by the labeling agent (scripts/agents/includes/status-enforcer.js), so
# they are NOT declared here. With sync-labels: true the labeler removes any
# label it declares when the branch no longer matches, and the agent then
# re-adds it: on a branch such as aiops/, task/, audit/ or dependabot/ that
# was a remove and re-add on every pull request event.
type:feature:
- head-branch:
- ^feat/.*
- ^perf/.*
type:bug:
- head-branch:
- ^fix/.*
type:docs:
- head-branch:
- ^docs?/.*
type:chore:
- head-branch:
- ^chore/.*
type:task:
- head-branch:
- ^task/.*
type:ci:
- head-branch:
- ^ci/.*
- ^build/.*
type:refactor:
- head-branch:
- ^refactor/.*
type:test:
- head-branch:
- ^test/.*
type:design:
- head-branch:
- ^design/.*
type:a11y:
- head-branch:
- ^a11y/.*
# PR type:* labels are owned by the router (.github/branch-labels.yml):
# labeler manages area:*/lang:* from files and keeps branch rules that
# agree with the router (#3545, #3731).
type:audit:
- head-branch:
- ^audit/.*
type:security:
- head-branch:
- ^security/.*
type:aiops:
- head-branch:
- ^aiops/.*
- ^automation/.*
type:epic:
- head-branch:
- ^epic/.*
type:release:
- head-branch:
- ^release/.*
- ^hotfix/.*
priority:critical:
- head-branch:
- ^hotfix/.*
- ^security/.*
priority:important:
- head-branch:
- ^a11y/.*
area:block-editor:
- changed-files:
- any-glob-to-any-file:
- src/blocks/**
- src/block-editor/**
- '**/block.json'
area:theme:
- changed-files:
- any-glob-to-any-file:
- '**/theme.json'
- '**/templates/**'
- '**/patterns/**'
- '**/parts/**'
- theme/**/*
area:ci:
- changed-files:
- any-glob-to-any-file:
- .github/workflows/**
- .github/actions/**
- ci/**/*
# The branch validation metrics PR carries area:ci from its workflow
# (branch-validation-metrics-aggregator.yml); matching its files here
# stops the labeler removing it again on every update.
- .github/reports/branch-validation/**
- metrics-artifacts/**
area:documentation:
- changed-files:
- any-glob-to-any-file:
- '**/*.md'
- docs/**
- README.md
- '**/README.md'
area:testing:
- changed-files:
- any-glob-to-any-file:
- tests/**/*
- '**/*.test.*'
- '**/*.spec.*'
- '**/__tests__/**'
area:playwright:
- changed-files:
- any-glob-to-any-file:
- playwright.config.ts
- '**/playwright/**'
area:jest:
- changed-files:
- any-glob-to-any-file:
- jest.config.*
- tests/**/*.test.{ts,js}
- src/**/*.test.{ts,js}
area:phpunit:
- changed-files:
- any-glob-to-any-file:
- phpunit.xml*
- tests/**/*.php
- tests/**/*Test.php
area:pagespeed:
- changed-files:
- any-glob-to-any-file:
- pagespeed/**
- '**/*pagespeed*'
- '**/*performance*.php'
- '**/*metrics*.php'
area:scripts:
- changed-files:
- any-glob-to-any-file:
- scripts/**/*
- '**/*.sh'
- '**/*.bash'
area:assets:
- changed-files:
- any-glob-to-any-file:
- assets/**/*
- images/**/*
- '**/*.png'
- '**/*.jpg'
- '**/*.svg'
area:woocommerce:
- changed-files:
- any-glob-to-any-file:
- woocommerce/**/*
- '**/woocommerce*.css'
- '**/woocommerce*.php'
- '**/woocommerce*.js'
lang:php:
- changed-files:
- any-glob-to-any-file:
- '**/*.php'
- composer.json
- composer.lock
- phpunit.xml
lang:js:
- changed-files:
- any-glob-to-any-file:
- '**/*.{js,jsx,ts,tsx}'
- package.json
- package-lock.json
- tsconfig.json
lang:css:
- changed-files:
- any-glob-to-any-file:
- '**/*.{css,scss,sass,less}'