From 4b19a501abfcc1eb26e395bb242b45cd56e279e2 Mon Sep 17 00:00:00 2001 From: Monil Patel Date: Fri, 20 Dec 2024 23:05:15 -0800 Subject: [PATCH 1/2] Create label.yml --- .github/workflows/label.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/label.yml diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 00000000000..51e3242a402 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,15 @@ +name: Labeler +on: [pull_request_target] + +jobs: + label: + + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From a6e41aa1418e8e9eb569de79e313dd543a242f26 Mon Sep 17 00:00:00 2001 From: Monil Patel Date: Fri, 20 Dec 2024 23:09:20 -0800 Subject: [PATCH 2/2] add labeler --- .github/workflows/labeler.yml | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000000..7d0add434ff --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,72 @@ +# .github/labeler.yml + +# Label PRs that modify documentation files +Documentation: + - changed-files: + - 'docs/**' + +# Label PRs with 'feature' if the head branch name starts with 'feature' +Feature: + - head-branch: ['^feature'] + +# Label PRs that modify files in the agent directory +Agent: + - changed-files: + - 'agent/**' + +# Label PRs that modify files in the .github directory +GitHub: + - changed-files: + - '.github/**' + +# Label PRs that modify files in the .turbo directory +Turbo: + - changed-files: + - '.turbo/**' + +# Label PRs that modify files in the characters directory +Characters: + - changed-files: + - 'characters/**' + +# Label PRs that modify files in the client directory +Client: + - changed-files: + - 'client/**' + - changed-files: + - 'packages/client-*/**' + +# Label PRs that modify files in the packages directory +Packages: + - changed-files: + - 'packages/**' + +# Label PRs that modify files in the scripts directory +Scripts: + - changed-files: + - 'scripts/**' + +# Label PRs that modify files in the src directory +Source: + - changed-files: + - 'src/**' + +# Label PRs that modify files in the tests directory +Tests: + - changed-files: + - 'tests/**' + +# Label PRs that modify files in the packages/adapter* directories +Adapter: + - changed-files: + - 'packages/adapter*/**' + +# Label PRs that modify files in the packages/core directory +Core: + - changed-files: + - 'packages/core/**' + +# Label PRs that modify files in the packages/plugin* directories +Plugin: + - changed-files: + - 'packages/plugin*/**'