diff --git a/test_approval.yml b/test_approval.yml new file mode 100644 index 0000000..da4c6f9 --- /dev/null +++ b/test_approval.yml @@ -0,0 +1,14 @@ +on: pull_request_review +name: Label approveal pull requests +jobs: + labelWhenApproved: + name: Label when approved + runs-on: ubuntu-latest + steps: + - name: Label when approved + uses: pullreminders/label-when-approved-action@master + env: + APPROVALS: "1" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ADD_LABEL: "approved" + REMOVE_LABEL: "awaiting%20review"