Skip to content

Commit f7f4f77

Browse files
raiden00plxiaoxiang781216
authored andcommitted
github: add auto labeler for PR
this commit adds initial support for auto labeler for PR based on https://github.com/actions/labeler
1 parent 2bfe2c2 commit f7f4f77

File tree

2 files changed

+174
-0
lines changed

2 files changed

+174
-0
lines changed

.github/labeler.yml

+168
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
21+
# add arch labels
22+
23+
"Area: Audio":
24+
- changed-files:
25+
- any-glob-to-any-file: 'audioutils/**'
26+
- any-glob-to-any-file: 'include/audioutils/**'
27+
28+
"Area: Benchmarks":
29+
- changed-files:
30+
- any-glob-to-any-file: 'benchmarks/**'
31+
- any-glob-to-any-file: 'include/benchmarks/**'
32+
33+
"Area: Boot":
34+
- changed-files:
35+
- any-glob-to-any-file: 'boot/**'
36+
- any-glob-to-any-file: 'include/boot/**'
37+
38+
"Area: CAN":
39+
- changed-files:
40+
- any-glob-to-any-file: 'canutils/**'
41+
- any-glob-to-any-file: 'include/canutils/**'
42+
43+
"Area: Binfmt":
44+
- changed-files:
45+
- any-glob-to-any-file: 'builtin/**'
46+
- any-glob-to-any-file: 'include/builtin/**'
47+
48+
"Area: Crypto":
49+
- changed-files:
50+
- any-glob-to-any-file: 'crypto/**'
51+
- any-glob-to-any-file: 'include/crypto/**'
52+
53+
"Area: Database":
54+
- changed-files:
55+
- any-glob-to-any-file: 'database/**'
56+
- any-glob-to-any-file: 'include/database/**'
57+
58+
"Area: Examples":
59+
- changed-files:
60+
- any-glob-to-any-file: 'examples/**'
61+
62+
"Area: File System":
63+
- changed-files:
64+
- any-glob-to-any-file: 'fsutils/**'
65+
- any-glob-to-any-file: 'include/fsutils/**'
66+
67+
"Area: Games":
68+
- changed-files:
69+
- any-glob-to-any-file: 'games/**'
70+
- any-glob-to-any-file: 'include/games/**'
71+
72+
"Area: Graphics":
73+
- changed-files:
74+
- any-glob-to-any-file: 'graphics/**'
75+
- any-glob-to-any-file: 'include/graphics/**'
76+
77+
"Area: Industry":
78+
- changed-files:
79+
- any-glob-to-any-file: 'industry/**'
80+
- any-glob-to-any-file: 'include/industry/**'
81+
82+
"Area: Inertial":
83+
- changed-files:
84+
- any-glob-to-any-file: 'inertial/**'
85+
- any-glob-to-any-file: 'include/inertial/**'
86+
87+
"Area: Interpreters":
88+
- changed-files:
89+
- any-glob-to-any-file: 'interpreters/**'
90+
- any-glob-to-any-file: 'include/interpreters/**'
91+
92+
"Area: Logging":
93+
- changed-files:
94+
- any-glob-to-any-file: 'logging/**'
95+
- any-glob-to-any-file: 'include/logging/**'
96+
97+
"Area: LTE":
98+
- changed-files:
99+
- any-glob-to-any-file: 'lte/**'
100+
- any-glob-to-any-file: 'include/lte/**'
101+
102+
"Area: Math":
103+
- changed-files:
104+
- any-glob-to-any-file: 'math/**'
105+
- any-glob-to-any-file: 'include/math/**'
106+
107+
"Area: Mlearning":
108+
- changed-files:
109+
- any-glob-to-any-file: 'mlearning/**'
110+
- any-glob-to-any-file: 'include/mlearning/**'
111+
112+
"Area: Modbus":
113+
- changed-files:
114+
- any-glob-to-any-file: 'modbus/**'
115+
- any-glob-to-any-file: 'include/modbus/**'
116+
117+
"Area: Networking":
118+
- changed-files:
119+
- any-glob-to-any-file: 'netutils/**'
120+
- any-glob-to-any-file: 'include/netuitls/**'
121+
122+
"Area: NSH":
123+
- changed-files:
124+
- any-glob-to-any-file: 'nshlib/**'
125+
- any-glob-to-any-file: 'include/nshlib/**'
126+
127+
"Area: SDR":
128+
- changed-files:
129+
- any-glob-to-any-file: 'sdr/**'
130+
- any-glob-to-any-file: 'include/sdr/**'
131+
132+
"Area: System":
133+
- changed-files:
134+
- any-glob-to-any-file: 'system/**'
135+
- any-glob-to-any-file: 'include/system/**'
136+
137+
"Area: Testing":
138+
- changed-files:
139+
- any-glob-to-any-file: 'testing/**'
140+
- any-glob-to-any-file: 'include/testing/**'
141+
142+
"Area: Video":
143+
- changed-files:
144+
- any-glob-to-any-file: 'videotuils/**'
145+
- any-glob-to-any-file: 'include/videotuils/**'
146+
147+
"Area: Wireless":
148+
- changed-files:
149+
- any-glob-to-any-file: 'wireless/**'
150+
- any-glob-to-any-file: 'include/wireless/**'
151+
152+
"Area: Build system":
153+
- changed-files:
154+
- any-glob-to-any-file: 'Makefile'
155+
- any-glob-to-any-file: 'Make.defs'
156+
- any-glob-to-any-file: '*.mk'
157+
- any-glob-to-any-file: 'CMakeLists.txt'
158+
- any-glob-to-any-file: 'cmake/**'
159+
- any-glob-to-any-file: 'import/**'
160+
- any-glob-to-any-file: 'staging/**'
161+
162+
"Area: Tools":
163+
- changed-files:
164+
- any-glob-to-any-file: 'tools/**'
165+
166+
"Area: CI":
167+
- changed-files:
168+
- any-glob-to-any-file: '.github/**'

.github/workflows/labeler.yml

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
- name: Checkout repository
2828
uses: actions/checkout@v4
2929

30+
- name: Assign labels based on paths
31+
uses: actions/labeler@main
32+
with:
33+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
34+
sync-labels: true
35+
3036
- name: Assign labels based on the PR's size
3137
uses: codelytv/[email protected]
3238
with:

0 commit comments

Comments
 (0)