From e93af9e0812df0aa3b794620111d83bda94b34bb Mon Sep 17 00:00:00 2001 From: Niraj Singh Date: Tue, 7 May 2024 11:57:37 +0530 Subject: [PATCH] PR Labeler --- .github/labeler.yml | 8 ++++++++ .github/workflows/labeler.yml | 15 +++++++++++++++ 2 files changed, 23 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..93fba43f4 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,8 @@ +'status:awaiting review': +- '**/*' + +'component:examples': +- examples/**/* + +'component:quickstarts': +- quickstarts/**/* \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..19f18a192 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +name: "PR Labeler" + +on: + pull_request_target: + types: ["opened", "reopened", "ready_for_review"] + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + if: ${{ github.event.pull_request.draft == false }} \ No newline at end of file