From f5e564640077097f719f7d242277f965577c901c Mon Sep 17 00:00:00 2001 From: AJCM-git <60196617+AJCM-git@users.noreply.github.com> Date: Thu, 31 Oct 2024 07:22:13 -0400 Subject: [PATCH] New workflow to apply the pr approved label (#28358) * New workflow to apply the pr approved label * Maybe fix permissions --- .github/workflows/labeler-approved.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/labeler-approved.yml diff --git a/.github/workflows/labeler-approved.yml b/.github/workflows/labeler-approved.yml new file mode 100644 index 0000000000..f583500c87 --- /dev/null +++ b/.github/workflows/labeler-approved.yml @@ -0,0 +1,17 @@ +name: "Labels: Approved" + +on: + pull_request_review: + types: [submitted] + +jobs: + add_label: + if: github.event.review.state == 'APPROVED' + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions-ecosystem/action-add-labels@v1 + with: + labels: "PR: Approved" -- 2.52.0