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:
17
.github/workflows/labeler-approved.yml
vendored
Normal file
17
.github/workflows/labeler-approved.yml
vendored
Normal 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"
|
||||
Reference in New Issue
Block a user