Skip to content

Commit 29b824f

Browse files
committed
Add PR labeler
1 parent 4f3242a commit 29b824f

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/labeler.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# See help here: https://github.com/marketplace/actions/labeler
2+
3+
cpp:
4+
- changed-files:
5+
- any-glob-to-any-file:
6+
- model_api/cpp/*
7+
8+
python:
9+
- changed-files:
10+
- any-glob-to-any-file:
11+
- model_api/python/*
12+
13+
tests:
14+
- changed-files:
15+
- any-glob-to-any-file:
16+
- tests/*
17+
18+
docs:
19+
- changed-files:
20+
- any-glob-to-any-file:
21+
- docs/*
22+
- "**/*.md"
23+
- "LICENSE"
24+
25+
build:
26+
- changed-files:
27+
- any-glob-to-any-file:
28+
- ".github/**/*"
29+
- ".pre-commit-config.yaml"
30+
- "pyproject.toml"
31+
- "**/CMakeLists.txt"

.github/workflows/pr-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+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v5
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)