]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✨ Add GitHub action to label approved PRs (#1638)
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 27 Jun 2020 17:59:10 +0000 (19:59 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2020 17:59:10 +0000 (19:59 +0200)
.github/workflows/pr-approvals.yml [new file with mode: 0644]

diff --git a/.github/workflows/pr-approvals.yml b/.github/workflows/pr-approvals.yml
new file mode 100644 (file)
index 0000000..dbc160c
--- /dev/null
@@ -0,0 +1,14 @@
+name: Label approved pull requests
+on: pull_request_review
+jobs:
+  labelWhenApproved:
+    name: Label when approved
+    runs-on: ubuntu-latest
+    steps:
+    - name: Label when approved
+      uses: pullreminders/label-when-approved-action@v1.0.7
+      env:
+        APPROVALS: "2"
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        ADD_LABEL: "approved-2"
+        REMOVE_LABEL: "awaiting%20review"