Skip to content

Commit 65c1cf4

Browse files
committed
chore(ci): add pull request labeler with path-to-label mapping
1 parent 288352a commit 65c1cf4

2 files changed

Lines changed: 83 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Maps changed paths to existing repo labels (see https://github.com/actions/labeler).
2+
# Labels must already exist on the repository.
3+
4+
# Avoid flooding large refactors
5+
changed-files-labels-limit: 25
6+
7+
'@oceanbase/design':
8+
- changed-files:
9+
- any-glob-to-any-file: 'packages/design/**'
10+
11+
'@oceanbase/ui':
12+
- changed-files:
13+
- any-glob-to-any-file: 'packages/ui/**'
14+
15+
'@oceanbase/icons':
16+
- changed-files:
17+
- any-glob-to-any-file: 'packages/icons/**'
18+
19+
'@oceanbase/charts':
20+
- changed-files:
21+
- any-glob-to-any-file: 'packages/charts/**'
22+
23+
'@oceanbase/util':
24+
- changed-files:
25+
- any-glob-to-any-file: 'packages/util/**'
26+
27+
'@oceanbase/codemod':
28+
- changed-files:
29+
- any-glob-to-any-file: 'packages/codemod/**'
30+
31+
documentation:
32+
- changed-files:
33+
- any-glob-to-any-file: 'docs/**'
34+
35+
changelog:
36+
- changed-files:
37+
- any-glob-to-any-file: '**/*CHANGELOG.md'
38+
39+
demo:
40+
- changed-files:
41+
- any-glob-to-any-file: '**/demos/**'
42+
43+
skills:
44+
- changed-files:
45+
- any-glob-to-any-file: 'skills/**'
46+
47+
site:
48+
- changed-files:
49+
- any-glob-to-any-file:
50+
- '.dumi/**'
51+
- '.dumirc.ts'
52+
- '.dumirc.theme.ts'
53+
- 'plugin-theme-less.ts'
54+
- 'public/**'
55+
- 'CNAME'
56+
57+
Test:
58+
- changed-files:
59+
- any-glob-to-any-file: 'tests/**'
60+
61+
workflow:
62+
- changed-files:
63+
- any-glob-to-any-file: '.github/**'
64+
65+
CI:
66+
- changed-files:
67+
- any-glob-to-any-file: '.github/workflows/**'

.github/workflows/pr-labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: PR Labeler
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
labeler:
13+
if: github.repository == 'oceanbase/oceanbase-design'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/labeler@v6

0 commit comments

Comments
 (0)