]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
New workflow to apply the pr approved label (#28358)
authorAJCM-git <60196617+AJCM-git@users.noreply.github.com>
Thu, 31 Oct 2024 11:22:13 +0000 (07:22 -0400)
committerGitHub <noreply@github.com>
Thu, 31 Oct 2024 11:22:13 +0000 (12:22 +0100)
* New workflow to apply the pr approved label

* Maybe fix permissions

.github/workflows/labeler-approved.yml [new file with mode: 0644]

diff --git a/.github/workflows/labeler-approved.yml b/.github/workflows/labeler-approved.yml
new file mode 100644 (file)
index 0000000..f583500
--- /dev/null
@@ -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"