New workflow to apply the pr approved label (#28358)

* New workflow to apply the pr approved label

* Maybe fix permissions
This commit is contained in:
AJCM-git
2024-10-31 07:22:13 -04:00
committed by GitHub
parent 826bd1ab45
commit f5e5646400

17
.github/workflows/labeler-approved.yml vendored Normal file
View File

@@ -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"