From 9a1c2fe057bc9e29c2e18a8a4faca4462662c5a4 Mon Sep 17 00:00:00 2001 From: Ankit kumar <78584803+flyingit@users.noreply.github.com> Date: Wed, 24 Aug 2022 22:24:36 +0530 Subject: [PATCH 1/2] Create Pull_request.yml Automate pull request --- Pull_request.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Pull_request.yml diff --git a/Pull_request.yml b/Pull_request.yml new file mode 100644 index 0000000..8676694 --- /dev/null +++ b/Pull_request.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: "2" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ADD_LABEL: "approved" + REMOVE_LABEL: "awaiting%20review" From 7b3adfa69e94b5188eb53eb6b417f0b52715b27a Mon Sep 17 00:00:00 2001 From: Ankit kumar <78584803+flyingit@users.noreply.github.com> Date: Wed, 24 Aug 2022 22:33:49 +0530 Subject: [PATCH 2/2] Create pull_requt.yml approval changed --- pull_requt.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pull_requt.yml diff --git a/pull_requt.yml b/pull_requt.yml new file mode 100644 index 0000000..2c3ff87 --- /dev/null +++ b/pull_requt.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"