From 19831c050cbd2b8760fd2132d4e0cc0d6c4c53a9 Mon Sep 17 00:00:00 2001 From: Ludy Date: Sat, 6 Jul 2024 16:43:53 +0200 Subject: [PATCH] Add labeler action for pull requests (#1529) * Automatically label PRs * Update labeler-config.yml --- .github/labeler-config.yml | 20 ++++++++++++++++++++ .github/workflows/labeler.yml | 17 +++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/labeler-config.yml create mode 100644 .github/workflows/labeler.yml 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