diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..37b7a7e --- /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 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