Skip to content

Commit 4816c54

Browse files
committed
ci: add PR labeler workflow
Labels PRs based on package type and target branch. Signed-off-by: George Sapkin <[email protected]>
1 parent a2b8a06 commit 4816c54

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

.github/labeler.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
"GitHub/CI":
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- ".github/**"
5+
6+
"admin":
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- "admin/**"
10+
"devel":
11+
- changed-files:
12+
- any-glob-to-any-file:
13+
- "devel/**"
14+
"fonts":
15+
- changed-files:
16+
- any-glob-to-any-file:
17+
- "fonts/**"
18+
"ipv6":
19+
- changed-files:
20+
- any-glob-to-any-file:
21+
- "ipv6/**"
22+
"kernel":
23+
- changed-files:
24+
- any-glob-to-any-file:
25+
- "kernel/**"
26+
"lang":
27+
- changed-files:
28+
- any-glob-to-any-file:
29+
- "lang/**"
30+
"libs":
31+
- changed-files:
32+
- any-glob-to-any-file:
33+
- "libs/**"
34+
"mail":
35+
- changed-files:
36+
- any-glob-to-any-file:
37+
- "mail/**"
38+
"multimedia":
39+
- changed-files:
40+
- any-glob-to-any-file:
41+
- "multimedia/**"
42+
"net":
43+
- changed-files:
44+
- any-glob-to-any-file:
45+
- "net/**"
46+
"sound":
47+
- changed-files:
48+
- any-glob-to-any-file:
49+
- "sound/**"
50+
"utils":
51+
- changed-files:
52+
- any-glob-to-any-file:
53+
- "utils/**"
54+
55+
# branches
56+
"master":
57+
- base-branch:
58+
- "master"
59+
"OpenWrt 23.05 (end of support)":
60+
- base-branch:
61+
- "openwrt-23.05"
62+
"OpenWrt 24.10":
63+
- base-branch:
64+
- "openwrt-24.10"

.github/workflows/labeler.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Pull Request Labeler'
2+
on:
3+
- pull_request_target
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
labeler:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
14+
name: Pull Request Labeler
15+
runs-on: ubuntu-slim
16+
steps:
17+
- uses: actions/labeler@v6
18+
with:
19+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
20+
sync-labels: true

0 commit comments

Comments
 (0)