Skip to content

Commit a493fbc

Browse files
authored
ci: PR auto labeler (#236)
1 parent abeee69 commit a493fbc

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/labeler.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
C-lib:
2+
- changed-files:
3+
- any-glob-to-any-file: ['cot/**']
4+
5+
C-cli:
6+
- changed-files:
7+
- any-glob-to-any-file: ['cot-cli/**']
8+
9+
C-macros:
10+
- changed-files:
11+
- any-glob-to-any-file: ['cot-macros/**']
12+
13+
C-codegen:
14+
- changed-files:
15+
- any-glob-to-any-file: ['cot-codegen/**']
16+
17+
A-ci:
18+
- changed-files:
19+
- any-glob-to-any-file: ['.github/**']

.github/workflows/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Pull Request Labeler"
2+
3+
on:
4+
pull_request_target:
5+
workflow_dispatch:
6+
7+
jobs:
8+
labeler:
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/labeler@v5

0 commit comments

Comments
 (0)