From 1f9b31308d22e20c0ae261b7054c174b6ca625b9 Mon Sep 17 00:00:00 2001 From: CybAtax <62847599+CybAtax@users.noreply.github.com> Date: Sat, 25 May 2024 23:17:29 +0200 Subject: [PATCH] Add PR labeler action --- .github/workflows/labeler.yml | 23 +++++++++++++++++++++++ config/labeler.yml | 16 ++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/labeler.yml create mode 100644 config/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..f860efd --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,23 @@ +name: "Pull Request Labeler" + +on: + pull_request: + branches: + - main + +permissions: + contents: read + pull-requests: write + +concurrency: + group: ${{github.workflow}}-${{github.ref}} + cancel-in-progress: true + +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + configuration-path: config/labeler.yml + sync-labels: true \ No newline at end of file diff --git a/config/labeler.yml b/config/labeler.yml new file mode 100644 index 0000000..1813207 --- /dev/null +++ b/config/labeler.yml @@ -0,0 +1,16 @@ +ci: + - changed-files: + - any-glob-to-any-file: .github/** + +documentation: + - changed-files: + - any-glob-to-any-file: + - docs/** + - CHANGELOG.md + - LICENSE.txt + - README.adoc + +java: + - changed-files: + - any-glob-to-any-file: + - src/**/java/**/*.java