diff --git a/.github/labeler-config.yml b/.github/labeler-config.yml new file mode 100644 index 00000000..029aa318 --- /dev/null +++ b/.github/labeler-config.yml @@ -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-*' \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..f2aa28c0 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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