From 5bb23653a46eb710e1eef98df2c17443ac2733c9 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Thu, 14 Dec 2023 20:56:23 -0700 Subject: [PATCH] Add pull request labeler --- .github/labeler.yml | 15 +++++++++++++++ .github/workflows/labeler.yml | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..87ba13d30 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,15 @@ +skip-changelog: +- changed-files: + - any-glob-to-any-file: [ '.gitattributes', '.github/**/*', '.gitignore', 'crowdin.yml', '.mvn/**/*' ] + +dependencies: +- changed-files: + - any-glob-to-any-file: [ 'pom.xml' ] + +documentation: +- changed-files: + - any-glob-to-any-file: [ '*.adoc', '*.md', '*.txt', '**/*.html', '**/*.png', 'LICENSE*' ] + +tests: +- changed-files: + - any-glob-to-any-file: [ 'src/test/**/*' ] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..80bba040d --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"