From e74b1f42ce9defd88d23018aa422ce37b456a112 Mon Sep 17 00:00:00 2001 From: rickdeve <50689355+rickdeve@users.noreply.github.com> Date: Sun, 19 Jun 2022 00:24:39 -0500 Subject: [PATCH] Create approval-workflow.yml --- approval-workflow.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 approval-workflow.yml diff --git a/approval-workflow.yml b/approval-workflow.yml new file mode 100644 index 0000000..2c3ff87 --- /dev/null +++ b/approval-workflow.yml @@ -0,0 +1,14 @@ +on: pull_request_review +name: Label approved 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"