Skip to content

Commit a67f625

Browse files
authored
🏷 Add github pr labeler to automatically label PRs (#498)
Add github pr labler
1 parent 5a452ec commit a67f625

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

.github/labeler.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# https://github.com/marketplace/actions/labeler
2+
3+
Benchmarking:
4+
- "tools/benchmarking/**/*"
5+
6+
Config:
7+
- "anomalib/config/**/*"
8+
9+
Callbacks:
10+
- "anomalib/utils/callbacks/**/*"
11+
12+
CLI:
13+
- "anomalib/utils/cli/**/*"
14+
15+
Data:
16+
- "anomalib/data/**/*"
17+
18+
Dependencies:
19+
- "requirements/*"
20+
21+
Docs:
22+
- "docs/**/*"
23+
- "*.md"
24+
25+
HPO:
26+
- "anomalib/utils/sweep/**/*"
27+
- "tools/hpo/**/*"
28+
29+
Inference:
30+
- "anomalib/deploy/**/*"
31+
- "tools/inference/*"
32+
33+
Logger:
34+
- "anomalib/utils/loggers/**/*"
35+
36+
Metrics:
37+
- "anomalib/utils/metrics/**/*"
38+
39+
Notebooks:
40+
- "notebooks/**/*"
41+
42+
Pre-Processing:
43+
- "anomalib/pre_processing/**/*"
44+
45+
Post-Processing:
46+
- "anomalib/post_processing/**/*"
47+
48+
Setup:
49+
- "**/setup.py"
50+
- "*.git*"
51+
- ".pre-commit-config.yaml"
52+
- "*rc"
53+
- "*.in"
54+
- "*.ini"
55+
- "pyproject.toml"
56+
57+
Tests:
58+
- "tests/**/*"
59+
60+
Tools:
61+
- "tools/**/*"

.github/workflows/labeler.yml

+14
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+
triage:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v4
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)