From acd01fe058ee85a21973506c01a2c60270d1405c Mon Sep 17 00:00:00 2001 From: Jaco Date: Wed, 23 Feb 2022 10:56:13 +0100 Subject: [PATCH] Use jacogr/action-approve (#7020) --- .github/mergify.yml | 9 --------- .github/workflows/approve.yml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/approve.yml diff --git a/.github/mergify.yml b/.github/mergify.yml index c6b566baec..92f3e8503b 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -27,12 +27,3 @@ pull_request_rules: queue: name: default method: squash - - - name: auto approval - conditions: - - author~=^jacogr$ - - label=automerge - actions: - review: - type: APPROVE - message: This auto-approval rule should be removed once more JS maintainers are active. diff --git a/.github/workflows/approve.yml b/.github/workflows/approve.yml new file mode 100644 index 0000000000..6a55562cb4 --- /dev/null +++ b/.github/workflows/approve.yml @@ -0,0 +1,14 @@ +name: PR + +on: pull_request + +jobs: + auto-approve: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: jacogr/action-approve@master + with: + authors: jacogr + labels: automerge + token: ${{ secrets.GH_PAT_BOT }}