From 9a21672a2a066278dffde73391f2479a1ec19a4a Mon Sep 17 00:00:00 2001 From: Ibrahim Alhas Date: Mon, 19 Aug 2024 12:43:13 +0100 Subject: [PATCH] added new action to auto label PR's used basic version from docs --- .github/workflows/labeler.yml | 17 +++++++++++++++++ .github/workflows/pull-request-labeler.yml | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/labeler.yml create mode 100644 .github/workflows/pull-request-labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..3f5e0255f --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,17 @@ +# Label for changes in the core application code +core: + - 'animal-ai/*' + +# Label for changes in documentation files +documentation: + - '**/*.md' + - 'docs/**' + +# Label for changes related to CI/CD workflows +ci: + - '.github/workflows/**' + +# Label for YAML configuration changes +configuration: + - '**/*.yaml' + - '**/*.yml' \ No newline at end of file diff --git a/.github/workflows/pull-request-labeler.yml b/.github/workflows/pull-request-labeler.yml new file mode 100644 index 000000000..ca54798b3 --- /dev/null +++ b/.github/workflows/pull-request-labeler.yml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" + +on: + pull_request_target: + types: [opened, synchronize, reopened] + +jobs: + label: + runs-on: ubuntu-latest + steps: + - name: Pull Request Labeler + uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file