From 6ddaf34298c656de7e8d36e00938479b5843a79c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Guid=C3=A9e?= Date: Mon, 4 Mar 2024 13:21:43 -0500 Subject: [PATCH] .github/workflows: auto label pull-requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Quentin Guidée --- .github/labeler.yml | 19 +++++++++++++++++++ .github/workflows/pr.yml | 13 +++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/pr.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..1c9dd69d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,19 @@ +'repo: Client': + - changed-files: + - any-glob-to-any-file: + - 'client/**' + +'repo: Server': + - changed-files: + - any-glob-to-any-file: + - 'server/**' + +'repo: Docs': + - changed-files: + - any-glob-to-any-file: + - 'docs/**' + +'repo: Components': + - changed-files: + - any-glob-to-any-file: + - 'packages/components/**' diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 00000000..e90fdd69 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,13 @@ +name: Pull Request + +on: [pull_request_target] + +jobs: + add-labels: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Add labels + uses: actions/labeler@v5