Skip to content

Commit

Permalink
ci: add label workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JesperDramsch committed Jan 10, 2025
1 parent 2c59d0b commit 4ce6558
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
training:
- changed-files:
- any-glob-to-any-file: [ "training/**/*" ]

graphs:
- changed-files:
- any-glob-to-any-file: [ "graphs/**/*" ]

models:
- changed-files:
- any-glob-to-any-file: [ "models/**/*" ]

dependencies:
- changed-files:
- any-glob-to-any-file:
- "requirements.txt"
- "setup.py"
- "pyproject.toml"
- "poetry.lock"
- "pixi.toml"
- "pixi.lock"
- "Pipfile"
- "Pipfile.lock"
- "requirements/*.txt"
- "requirements/*.in"

documentation:
- changed-files:
- any-glob-to-any-file:
- "docs/**/*"
- "*.md"
- "*.rst"

config:
- changed-files:
- any-glob-to-any-file:
- ".pre-commit-config.yaml"
- "config/**/*"
- "settings/**/*"
- "*.ini"
- "*.cfg"
- "*.conf"

CI/CD:
- changed-files:
- any-glob-to-any-file:
- ".github/**/*"
- "tox.ini"
- ".coveragerc"
12 changes: 12 additions & 0 deletions .github/workflows/pr-labeller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5

0 comments on commit 4ce6558

Please sign in to comment.