Skip to content

Commit

Permalink
Add labeler action for pull requests (#1529)
Browse files Browse the repository at this point in the history
* Automatically label PRs

* Update labeler-config.yml
  • Loading branch information
Ludy87 authored Jul 6, 2024
1 parent e426d99 commit 19831c0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/labeler-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
translation:
- changed-files:
- any-glob-to-any-file: 'src/main/resources/messages_*_*.properties'

Front End:
- changed-files:
- any-glob-to-any-file: 'src/main/resources/templates/**'

java:
- changed-files:
- any-glob-to-any-file: 'src/main/java/**/*.java'

documentation:
- changed-files:
- any-glob-to-any-file: '**/*.md'

docker:
- changed-files:
- any-glob-to-any-file: 'Dockerfile'
- any-glob-to-any-file: 'Dockerfile-*'
17 changes: 17 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Pull Request Labeler"
on:
pull_request:
types: [opened, synchronize]

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler-config.yml
sync-labels: true

0 comments on commit 19831c0

Please sign in to comment.