Skip to content

Commit 7d2fb1b

Browse files
authored
Add PR labeler (#235)
* Add PR labeler * Fix yml formatting
1 parent 4f3242a commit 7d2fb1b

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Pull Request Labeler"
2+
permissions: read-all
3+
on:
4+
- pull_request_target
5+
6+
jobs:
7+
labeler:
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/labeler@v5
14+
with:
15+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)