From d3205fb4c6a6f40326f06688ae505ebd578156f2 Mon Sep 17 00:00:00 2001 From: Gold87 <91761103+Gold872@users.noreply.github.com> Date: Sat, 1 Feb 2025 17:11:31 -0500 Subject: [PATCH] Add PR Labeler Workflow (#211) --- .github/labeler.yml | 15 +++++++++++++++ .github/workflows/pr-labeler.yml | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..0b7e1064 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,15 @@ +GUI: +- changed-files: + - any-glob-to-any-file: ['lib/**', 'test/**', 'pubspec.yaml'] + +ElasticLib: +- changed-files: + - any-glob-to-any-file: ['elasticlib/**'] + +dependencies: +- changed-files: + - any-glob-to-any-file: ['pubspec.yaml'] + +workflows: +- changed-files: + - any-glob-to-any-file: ['.github/workflows/**'] \ No newline at end of file diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 00000000..52863d8b --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,17 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - uses: actions/labeler@v5 + with: + sync-labels: true \ No newline at end of file