Skip to content

Commit

Permalink
add(tooling): PR autolabeler
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Nov 8, 2024
1 parent ed90896 commit ceee9b6
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
ci-cd:
- changed-files:
- any-glob-to-any-file: .github/**

dependencies:
- changed-files:
- any-glob-to-any-file:
- requirements/*.txt
- requirements.txt

documentation:
- changed-files:
- any-glob-to-any-file:
- docs/**
- requirements/documentation.txt

enhancement:
- head-branch: ["^feature", "feature", "^improve", "improve"]

packaging:
- head-branch: ["^packaging", "packaging"]

tooling:
- head-branch: ["^tooling", "tooling"]
- changed-files:
- any-glob-to-any-file:
- codecov.yml
- .pre-commit-config.yaml
- sonar-project.properties

UI:
- head-branch: ["^ui", "ui"]
- changed-files:
- any-glob-to-any-file:
- menu_from_project/**/*.ui
- menu_from_project/gui/**
14 changes: 14 additions & 0 deletions .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "🏷 PR Labeler"
on:
- pull_request

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

0 comments on commit ceee9b6

Please sign in to comment.