Skip to content

Commit

Permalink
🏷 Add github pr labeler to automatically label PRs (#498)
Browse files Browse the repository at this point in the history
Add github pr labler
  • Loading branch information
samet-akcay committed Aug 12, 2022
1 parent 5a452ec commit a67f625
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# https://github.com/marketplace/actions/labeler

Benchmarking:
- "tools/benchmarking/**/*"

Config:
- "anomalib/config/**/*"

Callbacks:
- "anomalib/utils/callbacks/**/*"

CLI:
- "anomalib/utils/cli/**/*"

Data:
- "anomalib/data/**/*"

Dependencies:
- "requirements/*"

Docs:
- "docs/**/*"
- "*.md"

HPO:
- "anomalib/utils/sweep/**/*"
- "tools/hpo/**/*"

Inference:
- "anomalib/deploy/**/*"
- "tools/inference/*"

Logger:
- "anomalib/utils/loggers/**/*"

Metrics:
- "anomalib/utils/metrics/**/*"

Notebooks:
- "notebooks/**/*"

Pre-Processing:
- "anomalib/pre_processing/**/*"

Post-Processing:
- "anomalib/post_processing/**/*"

Setup:
- "**/setup.py"
- "*.git*"
- ".pre-commit-config.yaml"
- "*rc"
- "*.in"
- "*.ini"
- "pyproject.toml"

Tests:
- "tests/**/*"

Tools:
- "tools/**/*"
14 changes: 14 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit a67f625

Please sign in to comment.